Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func FiberAuthError(message string) *fiber.Error
- func FiberNotFound(message string) *fiber.Error
- func FiberRequestError(message string) *fiber.Error
- func FiberServerError(message string) *fiber.Error
- func FiberUnprocessableEntity(message string) *fiber.Error
- func HashPassword(password string) (string, error)
- func RandomCodeGenerator() int
- func RandomNumber(low, hi int) int
- func RandomSliceElement[T any](sl []T) T
- func ValidateUUID(id string) (uuid.UUID, error)
- type StructValidator
- type Validatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func FiberAuthError ¶
func FiberNotFound ¶
func FiberRequestError ¶
func FiberServerError ¶
func HashPassword ¶
func RandomCodeGenerator ¶
func RandomCodeGenerator() int
func RandomNumber ¶
func RandomSliceElement ¶
func RandomSliceElement[T any](sl []T) T
Types ¶
type StructValidator ¶
type StructValidator struct {
// contains filtered or unexported fields
}
func DefaultStructValidator ¶
func DefaultStructValidator() *StructValidator
func (*StructValidator) Engine ¶
func (s *StructValidator) Engine() any
func (*StructValidator) Validate ¶
func (s *StructValidator) Validate(out any) error
type Validatable ¶
type Validatable interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.