annotation

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "kun"

	DirectivePrefix = "//" + Name + ":"

	FileHeader = `// Code generated by ` + Name + `; DO NOT EDIT.
// github.com/RussellLuo/` + Name + `
`
)

Variables

View Source
var (
	DirectiveHTTPOp      = FromSubDirective("op")
	DirectiveHTTPParam   = FromSubDirective("param")
	DirectiveHTTPBody    = FromSubDirective("body")
	DirectiveHTTPSuccess = FromSubDirective("success")
	DirectiveHTTPOAS     = FromSubDirective("oas")
	DirectiveHTTPAlias   = FromSubDirective("alias")

	DirectiveGRPC = FromSubDirective("grpc")

	DirectiveEvent = FromSubDirective("event")

	DirectiveCron = FromSubDirective("cron")
)

Functions

This section is empty.

Types

type Dialect

type Dialect string
const (
	DialectUnknown Dialect = ""
	DialectHTTP    Dialect = "http"
	DialectGRPC    Dialect = "grpc"
	DialectEvent   Dialect = "event"
	DialectCron    Dialect = "cron"
)

type Directive

type Directive string

func FromSubDirective

func FromSubDirective(s string) Directive

func (Directive) Dialect

func (d Directive) Dialect() Dialect

func (Directive) IsValid

func (d Directive) IsValid() bool

func (Directive) String

func (d Directive) String() string

func (Directive) SubDirective

func (d Directive) SubDirective() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL