utils

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(hash, password []byte) error

CheckPassword securely compares a bcrypt hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.

func GetActualMax

func GetActualMax(end int, total int) int

func GetActualMin

func GetActualMin(start int, total int) int

func GetFirstElementID

func GetFirstElementID[T types.Record](vals []T) int

func HashPassword

func HashPassword(password []byte) ([]byte, error)

HashPassword generates a bcrypt hash of the password using work factor 14.

func JobRowID

func JobRowID(id int) string

func JobRowMetadata

func JobRowMetadata(id int) string

func TimelineNoteRowID

func TimelineNoteRowID(id int) string

func TimelineNoteRowStringID

func TimelineNoteRowStringID(id string) string

func TimelineStatusRowID

func TimelineStatusRowID(id int) string

func TimelineStatusRowStringID

func TimelineStatusRowStringID(id string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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