generator

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDGenerator

type IDGenerator struct {
	Node *snowflake.Node
}

func GetGenerator

func GetGenerator() IDGenerator

func (IDGenerator) Load

func (c IDGenerator) Load() error

func (IDGenerator) LoadType

func (c IDGenerator) LoadType() string

func (IDGenerator) NewID

func (c IDGenerator) NewID() string

func (IDGenerator) Stop

func (c IDGenerator) Stop() error

func (IDGenerator) StopPriority

func (c IDGenerator) StopPriority() int

Jump to

Keyboard shortcuts

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