idgenerator

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRACE_ID_LENGTH = 32
	SPAN_ID_LENGTH  = 16
)

Variables

This section is empty.

Functions

func IsAllZero

func IsAllZero(data []byte) bool

Types

type IdGenerator

type IdGenerator interface {
	Generate(length int) (string, error)
}

type IdGeneratorV1

type IdGeneratorV1 struct{}

func NewIdGeneratorV1

func NewIdGeneratorV1() *IdGeneratorV1

func (*IdGeneratorV1) Generate

func (t *IdGeneratorV1) Generate(length int) (string, error)

Jump to

Keyboard shortcuts

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