Documentation ¶
Index ¶
- func Body(pointer interface{}, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func Bool(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func CustomBody(unmarshaler types.Unmarshaler, pointer interface{}, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func Float(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func Integer(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func String(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
- func Time(key, layout string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
func Body(pointer interface{}, opts ...request.Option) func(middlewares *middlewares.Middlewares)
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 ¶
func Bool(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
Bool - mandatory boolean Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Bool'.
func CustomBody ¶
func CustomBody( unmarshaler types.Unmarshaler, pointer interface{}, opts ...request.Option, ) func(middlewares *middlewares.Middlewares)
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 Float ¶
func Float(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
Float - mandatory floating point number Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Float'.
func Integer ¶
func Integer(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
Integer - queries mandatory integer Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.Integer'.
func String ¶
func String(key string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
String - mandatory string Parameter from request by 'key'.
Result can be retrieved from context using 'context.QueryParams.String'.
func Time ¶
func Time(key, layout string, place placing.Placing, opts ...request.Option) func(middlewares *middlewares.Middlewares)
Time - mandatory time Parameter from request by 'key' using 'layout'.
Result can be retrieved from context using 'context.QueryParams.Time'.
Types ¶
This section is empty.