idsequence

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdSequenceMap = make(map[string]*IdSequence)

Functions

func Init

func Init()

func Stop

func Stop()

Types

type IdSequence

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

func GetIdSequence

func GetIdSequence(biz string) (*IdSequence, error)

func NewIdSequence

func NewIdSequence(idListLength int64, biz string) *IdSequence

func (*IdSequence) Close

func (is *IdSequence) Close()

func (*IdSequence) GetOne

func (is *IdSequence) GetOne() (int64, error)

func (*IdSequence) Monitor

func (is *IdSequence) Monitor(ctx context.Context)

Jump to

Keyboard shortcuts

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