params

package
v0.10.3-0...-843c1f5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedAllocateID = errors.New("failed to allocate ID")

Functions

func ErrorIDAllocator

func ErrorIDAllocator() func() (int64, error)

func GenerateEtcdConfig

func GenerateEtcdConfig() *paramtable.EtcdConfig

GenerateEtcdConfig returns a etcd config with a random root path, NOTE: for test only

func RandomIncrementIDAllocator

func RandomIncrementIDAllocator() func() (int64, error)

func RandomMetaRootPath

func RandomMetaRootPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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