Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
Endpoint is a description of a function HTTP endpoint.
func (Endpoint) HandlerPath ¶
HandlerPath returns the endpoint's method and path as a string.
type Field ¶
Field is a named field of a specific type.
func (Field) NameCapitalized ¶
NameCapitalized returns the field's name with the first letter uppercased.
type Function ¶
Function is the comlete infomation about a function and a corresponding HTTP endpoint.
func (Function) HandlerName ¶
HandlerName returns the function's endpoint handler name.
type Param ¶
type Param struct {
Field
Type ParamType
Origin ParamOrigin
}
Param is a param of a function.
func (Param) NameOrigin ¶
NameOrigin returns the param's name joined with its origin.
type ParamOrigin ¶
type ParamOrigin string
ParamOrigin is an origin of Param.
const ( Path ParamOrigin = "Path" Query ParamOrigin = "Query" Body ParamOrigin = "Body" )
func GetParamOrigin ¶
func GetParamOrigin(originName string) (ParamOrigin, error)
GetParamOrigin parses a param origin from string.
type ParamType ¶
type ParamType string
ParamType is a type of Param.
Click to show internal directories.
Click to hide internal directories.