Documentation ¶
Index ¶
- Variables
- func AESDecrypt(key, ciphertext []byte) ([]byte, error)
- func AESEncrypt(key, text []byte) ([]byte, error)
- func GenerateSecretKey(filePath string) ([]byte, bool)
- func RemoveDuplicates[T string | int](sliceList []T) []T
- func ValidationMessages(err *error, locale *i18n.Locale) string
- type Argon2ID
- type OpengistValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var Argon2id = Argon2ID{ // contains filtered or unexported fields }
Functions ¶
func AESDecrypt ¶ added in v1.8.0
func AESEncrypt ¶ added in v1.8.0
func GenerateSecretKey ¶ added in v1.8.0
GenerateSecretKey generates a new secret key for sessions Returns the key and a boolean indicating if the key was generated
func RemoveDuplicates ¶ added in v1.6.0
Types ¶
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
Click to show internal directories.
Click to hide internal directories.