mockid

package
v1.1.0-beta.0...-b079b5f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0, 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 (*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