seq

package
v0.0.0-...-3b4426b Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicSeq

type AtomicSeq struct {
	*atomic.Uint64
}

AtomicSeq use atomic.Int64 to create seq number

func (*AtomicSeq) Next

func (a *AtomicSeq) Next() string

type Interface

type Interface interface {
	Next() string
}

Interface to generate sequence number

func NewAtomicSeq

func NewAtomicSeq() Interface

NewAtomicSeq new atomic sequence instance

Jump to

Keyboard shortcuts

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