Documentation ¶
Index ¶
- func Body(pointer interface{}, opts ...request.Option) request.HandlerParams
- func Bool(key string, place placing.Placing, opts ...request.Option) request.HandlerParams
- func CustomBody(unmarshal types.Unmarshaler, pointer interface{}, opts ...request.Option) request.HandlerParams
- func Description(desc string) request.HandlerParams
- func Float(key string, place placing.Placing, opts ...request.Option) request.HandlerParams
- func Header(key string) request.HandlerParams
- func Integer(key string, place placing.Placing, opts ...request.Option) request.HandlerParams
- func String(key string, place placing.Placing, opts ...request.Option) request.HandlerParams
- func Time(key, layout string, place placing.Placing, opts ...request.Option) request.HandlerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
func Body(pointer interface{}, opts ...request.Option) request.HandlerParams
Body - takes pointer to structure and saves casted request body into context and pointer.
Result can be retrieved from context using 'context.QueryParams.Body'.
func Bool ¶
Bool - mandatory boolean Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Bool'.
func CustomBody ¶
func CustomBody(unmarshal types.Unmarshaler, pointer interface{}, opts ...request.Option) request.HandlerParams
CustomBody - takes unmarshaler and pointer to structure and saves casted request body into context.
Result can be retrieved from context using 'context.QueryParams.Body'.
func Description ¶
func Description(desc string) request.HandlerParams
func Float ¶
Float - mandatory floating point number Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Float'.
func Header ¶
func Header(key string) request.HandlerParams
func Integer ¶
Integer - queries mandatory integer Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Integer'.
Types ¶
This section is empty.