gensym

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBase32

func RandomBase32() string

Types

type ULIDGenerator

type ULIDGenerator struct {
	// contains filtered or unexported fields
}

A concurrency-safe source of monotonic ULIDs. See <https://github.com/ulid/spec>.

func NewULIDGenerator

func NewULIDGenerator(ctx context.Context) *ULIDGenerator

func (*ULIDGenerator) NextID

func (gen *ULIDGenerator) NextID(ctx context.Context) (ulid.ULID, error)

Jump to

Keyboard shortcuts

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