uuid

package
v0.0.0-...-9b29622 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetBankAccountId = TimebaseUUID(14)
View Source
var UselessUnique = TimebaseUUID(20)

Functions

func Base58Uuid

func Base58Uuid() string

func Rand8Num

func Rand8Num(length int) uint64

func RandByte

func RandByte(num int) []byte

func TimebaseUUID

func TimebaseUUID(seqBit int) func(n int64) uint64

Types

type IncreasingUuid

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

func NewIncreasingUuid

func NewIncreasingUuid(key string, ul LastUidStore) (*IncreasingUuid, error)

func (*IncreasingUuid) GenUuid

func (i *IncreasingUuid) GenUuid() uint64

func (*IncreasingUuid) Save

func (i *IncreasingUuid) Save() error

type LastUidStore

type LastUidStore interface {
	Get(key string) (uint64, error)
	Set(key string, last uint64) error
}

Jump to

Keyboard shortcuts

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