common

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordPolicy added in v0.1.32

func CheckPasswordPolicy(password string, policy string) error

func GeneratePassword added in v0.1.32

func GeneratePassword(password string, hashCost string) (string, error)

Types

type ListResult

type ListResult[T any] struct {
	Data    []T `json:"data"`
	EndPage int `json:"end_page"`
}

type PasswordPolicy added in v0.1.32

type PasswordPolicy string
const (
	PasswordLevel1 PasswordPolicy = "level1"
	PasswordLevel2 PasswordPolicy = "level2"
	PasswordLevel3 PasswordPolicy = "level3"
)

type QueryOpts

type QueryOpts struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

Jump to

Keyboard shortcuts

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