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
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
Click to show internal directories.
Click to hide internal directories.