utils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 12 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) 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