constant

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseSuccess             = "success"
	ResponseCreated             = "created"
	ResponseConflict            = "conflict"
	ResponseInternalServerError = "internal_server_error"
	ResponseBadRequest          = "bad_request"
	ResponseNotFound            = "not_found"
	ResponseUnprocessableEntity = "unprocessable_entity"
	ResponseUnauthorized        = "unauthorized"
	ResponseForbidden           = "forbidden"
	ResponseInvalidParam        = "invalid_parameter_value"
	ResponseInvalidParamFormat  = "invalid_parameter_format"
	ResponseInvalidDateRange    = "invalid_date_range_parameter"
	ResponseInvalidPagination   = "invalid_pagination_parameter"
	ResponseInvalidToken        = "invalid_token"
	ResponseTokenExpired        = "token_expired"
	ResponseUserDisabled        = "user_disable"
	ResponseAccessDenied        = "access_denied"
	ResponseNoContent           = "no_content"
)

Variables

View Source
var ListMessage []Message

Functions

func InitMessage

func InitMessage()

Types

type Message

type Message struct {
	Lang language.Tag
	Msg  []*i18n.Message
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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