utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argon2Compare

func Argon2Compare(pass, hashPass string, salt string) bool

func Argon2ID

func Argon2ID(pass string) (password string, salt string)

func DeCodeBody

func DeCodeBody[T any](r io.Reader, v *validator.Validate) (T, error)

func GetIP

func GetIP(r *http.Request) (string, error)

func UUIDGen

func UUIDGen(t string) string

func WithTx

func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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