helper

package
v0.0.0-...-1951ad6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Encryptor

type Encryptor struct{}

func RegisterEncryptor

func RegisterEncryptor() *Encryptor

func (*Encryptor) HashPassword

func (e *Encryptor) HashPassword(password string) (string, error)

type Uploader

type Uploader struct{}

func RegisterUploader

func RegisterUploader() *Uploader

func (*Uploader) SaveFIle

func (e *Uploader) SaveFIle(c *fiber.Ctx, inputName, prefix string) (string, error)

type Validator

type Validator struct{}

func RegisterValidator

func RegisterValidator() *Validator

func (Validator) StringMatches

func (v Validator) StringMatches(s string, params ...string) bool

func (Validator) Validate

func (v Validator) Validate(data interface{}) (bool, error)

func (Validator) ValidateMap

func (v Validator) ValidateMap(s map[string]interface{}, m map[string]interface{}) (bool, error)

Jump to

Keyboard shortcuts

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