Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDAllocator ¶
type IDAllocator struct {
// contains filtered or unexported fields
}
IDAllocator mocks IDAllocator and it is only used for test.
func (*IDAllocator) Alloc ¶
func (alloc *IDAllocator) Alloc() (uint64, error)
Alloc returns a new id.
func (*IDAllocator) Rebase ¶
func (*IDAllocator) Rebase() error
Rebase implements the IDAllocator interface.
Click to show internal directories.
Click to hide internal directories.