logid

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogIDGenerator

func SetLogIDGenerator(gen Generator)

Types

type Generator

type Generator interface {
	Generate() LogID
}

func NewGenerator

func NewGenerator() Generator

type ID128Bits

type ID128Bits []byte

func (ID128Bits) String

func (id ID128Bits) String() string

type LogID

type LogID interface {
	String() string
}

func Generate

func Generate() LogID

func NewID128Bits

func NewID128Bits(t time.Time, sequence int) LogID

Jump to

Keyboard shortcuts

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