utils

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Argon2id = Argon2ID{
	// contains filtered or unexported fields
}

Functions

func ReadKey added in v1.7.0

func ReadKey(filePath string) []byte

func RemoveDuplicates added in v1.6.0

func RemoveDuplicates[T string | int](sliceList []T) []T

func ValidationMessages added in v1.7.0

func ValidationMessages(err *error, locale *i18n.Locale) string

Types

type Argon2ID added in v1.7.0

type Argon2ID struct {
	// contains filtered or unexported fields
}

func (Argon2ID) Hash added in v1.7.0

func (a Argon2ID) Hash(plain string) (string, error)

func (Argon2ID) Verify added in v1.7.0

func (a Argon2ID) Verify(plain, hash string) (bool, error)

type OpengistValidator added in v1.7.0

type OpengistValidator struct {
	// contains filtered or unexported fields
}

func NewValidator added in v1.7.0

func NewValidator() *OpengistValidator

func (*OpengistValidator) Validate added in v1.7.0

func (cv *OpengistValidator) Validate(i interface{}) error

func (*OpengistValidator) Var added in v1.7.0

func (cv *OpengistValidator) Var(field interface{}, tag string) error

Jump to

Keyboard shortcuts

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