Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IdSequenceMap = make(map[string]*IdSequence)
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.