idsrc

package
v0.0.1-v20240505 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEpochExhausted = errors.New("the epoch is exhausted; cannot generate new IDs")
View Source
var ErrInvalidID = errors.New("this ID is invalid")

Functions

func Decode

func Decode(id int64) (time.Time, uint8, error)

Types

type IdSrc

type IdSrc interface {
	Gen() (int64, error)
}

func New

func New() IdSrc

Jump to

Keyboard shortcuts

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