//
pkg.gl
Category
github.com/infrahq/infra
uid
package
0.21.0
Repository:
https://github.com/infrahq/infra.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
7
Files
177 SLOC
#
Functions
New
New returns an ID using a random NodeID.
NewNode
NewNode returns a new snowflake node that can be used to generate snowflake IDs.
Parse
Parse parses a base58 encoded value into an ID.
#
Structs
Node
A Node struct holds the basic information needed for a snowflake generator node.
#
Type aliases
ID
An ID is a custom type used for a snowflake ID.