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 )
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.
Click to show internal directories.
Click to hide internal directories.