wrapper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataField    = "data"
	TraceIDField = "trace_id"
	StatusField  = "status"
	CodeField    = "code"
	MessageField = "message"
)

constants wrapper http

Variables

This section is empty.

Functions

func Translate

func Translate(c *gin.Context, res gohttp.Response)

Translate gohttp.Response to response

func Wrap

func Wrap(fn GinHandlerFn) gin.HandlerFunc

Wrap return new gin.HandlerFunc by GinHandlerFn

Types

type GinHandlerFn

type GinHandlerFn func(c *gin.Context) gohttp.Response

GinHandlerFn gin handler function

Jump to

Keyboard shortcuts

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