response

package
v0.0.0-...-3be5031 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(c *gin.Context, err error)

func Error

func Error(c *gin.Context, err error)

func NotFound

func NotFound(c *gin.Context)

func OK

func OK(c *gin.Context, data interface{}, meta ...interface{})

func OKWithBlock

func OKWithBlock(c *gin.Context, db *db.DB, data interface{}, meta ...interface{})

Types

type ResponseMeta

type ResponseMeta map[string]interface{}

func Meta

func Meta() ResponseMeta

func (ResponseMeta) Set

func (m ResponseMeta) Set(key string, value interface{}) ResponseMeta

Jump to

Keyboard shortcuts

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