Documentation ¶
Index ¶
Constants ¶
View Source
const ( METHOD_UNSPECIFIED = 0 + iota // (DEFAULT) GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE )
Variables ¶
View Source
var ( CacheApi = sync.Map{} EmptyApi = &API{} )
View Source
var RequestMethodValue = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"GET": 1,
"HEAD": 2,
"POST": 3,
"PUT": 4,
"DELETE": 5,
"CONNECT": 6,
"OPTIONS": 7,
"TRACE": 8,
}
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Name string `json:"name" yaml:"name"` ITypeStr string `json:"itype" yaml:"itype"` IType ApiType `json:"-" yaml:"-"` OTypeStr string `json:"otype" yaml:"otype"` OType ApiType `json:"-" yaml:"-"` Status Status `json:"status" yaml:"status"` Metadata interface{} `json:"metadata" yaml:"metadata"` Method string `json:"method" yaml:"method"` RequestMethod `json:",omitempty" yaml:"-"` }
API is api gateway concept, control request from browser、Mobile APP、third party people
type RequestMethod ¶
type RequestMethod int32
Click to show internal directories.
Click to hide internal directories.