Documentation
¶
Index ¶
Constants ¶
View Source
const ( Header ParamType = "header" Query = "query" BodyFormEncoded = "body_form_encoded" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessTokens ¶
type AccessTokens struct {
Tokens []AccessToken `dynamo:"tokens"`
}
func (AccessTokens) AddTokensToRequest ¶
func (ats AccessTokens) AddTokensToRequest(r *http.Request) error
type Field ¶
type Field struct { // Template is a gateway path Template URITemplate // Path is a destination api path Path URITemplate ForwardSchema string // Num represents the recent number of api calls. Num int // Max represents the maximum api call limit if Max's type is int. // If it is "-", the number of the api calls has no limit. Max interface{} }
type FieldResult ¶
type Fields ¶
type Fields []Field
func (Fields) CheckAPILimit ¶
func (Fields) LookupTemplate ¶
func (f Fields) LookupTemplate(path string) (*FieldResult, error)
type NotSupportedParamType ¶
type NotSupportedParamType string
func (NotSupportedParamType) Error ¶
func (nsp NotSupportedParamType) Error() string
type URITemplate ¶
type URITemplate struct {
// contains filtered or unexported fields
}
func NewURITemplate ¶
func NewURITemplate(path string) URITemplate
func (*URITemplate) AllocateParameter ¶
func (u *URITemplate) AllocateParameter(m map[string]string) error
func (*URITemplate) JoinPath ¶
func (u *URITemplate) JoinPath() string
func (*URITemplate) Match ¶
func (u *URITemplate) Match(t URITemplate) (map[string]string, bool)
Click to show internal directories.
Click to hide internal directories.