placers

package
v0.0.0-...-569481b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPlacerDataDir        = "placer-data"
	DefaultPlacerLogCacheCap    = 128
	DefaultPlacerPeersConnPool  = 10
	DefaultPlacerPeersIOTimeout = 15 * time.Second

	PlacerLogDBFile    = "placer.log.bolt"
	PlacerStableDBFile = "placer.stable.bolt"
)
View Source
const (
	DBGroupPrefix  = "g"
	DBGroupCounter = "counterGroup"
)

Variables

This section is empty.

Functions

func NewPlacer

func NewPlacer(c *PlacerConfig) api.Server

func Placer

func Placer() api.Server

Types

type PlacerConfig

type PlacerConfig struct {
	Host           string
	ID             raft.ServerID
	PeerMap        *api.AddressMap
	DataDir        string
	LogCacheCap    int
	PeersConnPool  int
	PeersIOTimeout time.Duration

	// TODO: User-provided tenant store.
	Tenants api.Tenants
	// contains filtered or unexported fields
}

func DefaultPlacerConfig

func DefaultPlacerConfig() *PlacerConfig

func (*PlacerConfig) WithDataDir

func (c *PlacerConfig) WithDataDir(elem ...string) string

Jump to

Keyboard shortcuts

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