handler

package
v0.0.0-...-542fe02 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadResponse

func BadResponse(c *app.RequestContext, err error)

BadResponse 返回错误状态码与错误信息

func Ping

func Ping(ctx context.Context, c *app.RequestContext)

Ping .

func SendResponse

func SendResponse(c *app.RequestContext, data interface{})

SendResponse pack response

Types

type Response

type Response struct {
	StatusCode int64  `json:"status_code"`
	StatusMsg  string `json:"status_msg,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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