identity

package
v1.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultEntropy

func DefaultEntropy() io.Reader

DefaultEntropy returns a reader that generates ULID entropy. The default entropy function utilizes math/rand.Rand, which is not safe for concurrent use by multiple goroutines. Therefore, this function employs x/exp/rand, as recommended by the authors of the library.

func DefaultGenerator

func DefaultGenerator() string

func GenerateID

func GenerateID() string

GenerateID generates a new universal ID

func MockGenerator

func MockGenerator(mockValue string)

func ResetGenerator

func ResetGenerator()

func ValidID

func ValidID(id string) bool

ValidID checks if the given id is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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