servermsg

package
v0.0.0-...-fca7ff4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgSomethingWentWrong      = "something went wrong"
	MsgInvalidToken            = "invalid token"
	MsgInvalidTokenAlgorithm   = "invalid token algorithm"
	MsgFieldRequired           = "this field is required"
	MsgInvalidLengthOfUsername = "the username must be between 6 and 191 characters"
	MsgInvalidInput            = "invalid input"
	MsgInvalidLengthOfPassword = "the password must be between 8 and 191 characters"
	MsgRecordNotFound          = "record not found"
)

Variables

This section is empty.

Functions

func HTTPMsg

func HTTPMsg(c echo.Context, err error, t *translation.Translate) error

Types

type ErrorResponse

type ErrorResponse struct {
	Message string            `json:"message"`
	Errors  map[string]string `json:"errors"`
}

Jump to

Keyboard shortcuts

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