mockid

package
v3.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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 create a new IDAllocator

func (*IDAllocator) Alloc

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

Alloc return a new id

Jump to

Keyboard shortcuts

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