annotation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIQuery thrift.AnnoType = 1 + iota
	APIPath
	APIHeader
	APICookie
	APIBody
	APIHTTPCode
	APIRawBody
	APIPostForm
	APIRawUri
	APINoBodyStruct
)
View Source
const (
	APIKey thrift.AnnoType = 501

	APIKeyName string = "api.key"
)
View Source
const (
	ToSnake    thrift.AnnoType = 401
	ToLowCamel thrift.AnnoType = 402
)
View Source
const (
	JSConv                      = thrift.AnnoType(types.VM_JSCONV)
	BodyDynamic thrift.AnnoType = thrift.AnnoType(257)
)

Variables

View Source
var (
	NameCaseKeys = []string{"agw.to_snake", "janus.to_snake", "agw.to_lower_camel_case", "janus.to_lower_camel_case"}
)

Functions

func FindAnnotations

func FindAnnotations(anns []*parser.Annotation, keys ...string) (ret []*parser.Annotation)

func InitAGWAnnos added in v0.2.5

func InitAGWAnnos()

This is only used for internal specifications. DO NOT USE IT if you don't know related annotations

Types

This section is empty.

Jump to

Keyboard shortcuts

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