helper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalID     string = "localID"
	LocalUser   string = "localUser"
	LocalDTO    string = "localDTO"
	LocalFilter string = "localFilter"

	ParamID   string = "id"
	ParamMail string = "email"
)

Variables

View Source
var ErrIntConvert = errors.New("invalid string number")

Functions

func DurationFromString

func DurationFromString(str string, factor time.Duration) (time.Duration, error)

func NewHTTPResponse

func NewHTTPResponse(c *fiber.Ctx, status int, message string) error

func PanicIfErr

func PanicIfErr(err error)

Types

type HTTPResponse

type HTTPResponse struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

Jump to

Keyboard shortcuts

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