internal

package
v0.0.0-...-5c4fd57 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailRX *regexp.Regexp = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
View Source
var ErrInvalidContentType = errors.New("invalid Content-Type")
View Source
var IrisEpoch string = "2024-09-09T14:00:00-0600"

Functions

func ClientError

func ClientError(c *fiber.Ctx, status int, errors ...any) error

func GenerateID

func GenerateID() string

func GetIrisEpoch

func GetIrisEpoch() time.Time

func ServerError

func ServerError(c *fiber.Ctx, err error, errorMsg string) error

func VerifyContentType

func VerifyContentType(c *fiber.Ctx, contentType string) error

Types

type ClientReqError

type ClientReqError struct {
	Status string `json:"status"`
	Errors []any  `json:"errors"`
}

type DefaultError

type DefaultError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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