snowflakex

package
v0.0.0-...-45a4d88 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultStartTime = time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC)
)

Functions

This section is empty.

Types

type Node

type Node interface {
	NextID() int64
}

func NewNode

func NewNode(startTime time.Time, machineId int) Node

type SonyFlake

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

func (*SonyFlake) NextID

func (node *SonyFlake) NextID() int64

Jump to

Keyboard shortcuts

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