responses

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalOpenError

func GlobalOpenError(result interface{}, err error, c *gin.Context) *gin.Context

func GlobalOpenNoAuth

func GlobalOpenNoAuth(c *gin.Context) *gin.Context

func GlobalResponse

func GlobalResponse(body interface{}, c *gin.Context) *gin.Context

OpenApi

func GlobalResponseError

func GlobalResponseError(result interface{}, err error, c *gin.Context) *gin.Context

GlobalResponseError is used to wrap all the errored API responses under the same model. Automatically detect if there is an error and return status and code according

func GlobalResponseMRT

func GlobalResponseMRT(header string, body string, c *gin.Context) *gin.Context

GlobalResponseMRT is used to wrap all responses using a MRT token

func GlobalResponseNoAuth

func GlobalResponseNoAuth(c *gin.Context) *gin.Context

GlobalResponseNoAuth is used to wrap all non-auth API responses under the same model.

Types

This section is empty.

Jump to

Keyboard shortcuts

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