annotation

package
v0.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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