responses

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ResAuthFailed = 1001
View Source
const ResGenTokenFailed = 1002
View Source
const ResInvalidSignature = 1003
View Source
const ResInvalidToken = 1005
View Source
const ResOk int = 1000
View Source
const ResParseTokenFailed = 1004
View Source
const ResRetrieveFailed = 1007
View Source
const ResTokenExpired = 1006

Variables

This section is empty.

Functions

func CustomResponse

func CustomResponse(w http.ResponseWriter, code int, message string, data interface{}) error

Types

type ResponseForm

type ResponseForm struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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