uniqueid

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	NewID() ID
}

func NewGenerator

func NewGenerator(key []byte, nodeID int) (Generator, error)

func NewGeneratorFromHostName

func NewGeneratorFromHostName(key []byte, serviceID int, debug bool) (Generator, error)

type ID

type ID uint64

func ParseID

func ParseID(id string) (ID, error)

func ParseIDSafe

func ParseIDSafe(id string) ID

func (ID) String

func (h ID) String() string

func (ID) Uint64

func (h ID) Uint64() uint64

Jump to

Keyboard shortcuts

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