Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { // ID returns a new ID ID() int // ReturnIDs adds new IDs back to the queue. ReturnIDs(...int) }
Generator implements the local id generator
type GeneratorImpl ¶
type GeneratorImpl struct {
// contains filtered or unexported fields
}
GeneratorImpl is the struct that implements Generator
func (*GeneratorImpl) ID ¶
func (g *GeneratorImpl) ID() int
func (*GeneratorImpl) ReturnIDs ¶
func (g *GeneratorImpl) ReturnIDs(items ...int)
ReturnIDs adds new IDs back to the queue.
Click to show internal directories.
Click to hide internal directories.