request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidParameters = errors.New(10001, "invalid parameters")
)

Functions

func BindJSON

func BindJSON(c *gin.Context, v interface{}) error

func BindQuery

func BindQuery(c *gin.Context, v interface{}) error

func Body

func Body(c *gin.Context) (body []byte, err error)

func Task

func Task(c *gin.Context) *core.Task

func WithTask

func WithTask(c *gin.Context, task *core.Task)

Types

This section is empty.

Jump to

Keyboard shortcuts

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