snowflake

package
v0.0.0-...-aa3d5c5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func NewNode

func NewNode(options *NodeOptions) (*Node, error)

func (*Node) Provide

func (n *Node) Provide() dinfra.ID

type NodeOptions

type NodeOptions struct {
	Epoch    int64
	NodeBits uint8
	StepBits uint8
	Node     int64
}

func NewDefaultNodeOptions

func NewDefaultNodeOptions() *NodeOptions

Jump to

Keyboard shortcuts

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