parameter

package
v0.0.0-...-a839d2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL