mockid

package
v4.0.0-beta.2.0...-c7f9382 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 NewIDAllocator

func NewIDAllocator() *IDAllocator

NewIDAllocator creates a new IDAllocator.

func (*IDAllocator) Alloc

func (alloc *IDAllocator) Alloc() (uint64, error)

Alloc returns a new id.

func (*IDAllocator) Rebase

func (alloc *IDAllocator) Rebase() error

Rebase implements the IDAllocator interface.

Jump to

Keyboard shortcuts

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