Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
type IDGenerator struct {
// contains filtered or unexported fields
}
IDGenerator no mutex required, markets work deterministically, and sequentially.
func New ¶
func New(rootID string) *IDGenerator
New returns an idGenerator, and is used to abstract this type.
func (*IDGenerator) NextID ¶
func (i *IDGenerator) NextID() string
Click to show internal directories.
Click to hide internal directories.