emsgs

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsEmpty           = "is-empty"
	NotEmail          = "not-email"
	NotURL            = "not-url"
	NotDigitsOnly     = "not-digits-only"
	NotPositiveNumber = "not-positive-number"
	NotNumber         = "not-number"
)
View Source
const (
	NotString  = "not-string"
	NotInteger = "not-integer"
	NotFloat   = "not-float"
	NotArray   = "not-array"
	NotObject  = "not-object"
	NotBoolean = "not-boolean"
	NotDate    = "not-date"
)
View Source
const (
	ObjectAlreadyExists = "object-already-exists"
	ObjectNotFound      = "object-not-found"
)
View Source
const (
	Internal                  = "internal"
	Unauthorized              = "unauthorized"
	NoPermissions             = "no-permissions"
	Banned                    = "banned"
	TooManyConcurrentRequests = "too-many-concurrent-requests"
	WrongCredentials          = "wrong-credentials"
)

Variables

This section is empty.

Functions

func GetCouldNotBeMoreError

func GetCouldNotBeMoreError(fromProperty, toProperty string) string

func GetLengthError

func GetLengthError(min, max int) string

func GetMaxLengthError

func GetMaxLengthError(length int) string

func GetMinLengthError

func GetMinLengthError(length int) string

func GetWrongError

func GetWrongError(fieldName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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