metaservers

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMetaserverDataDir        = "metaserver-data"
	DefaultMetaserverLogCacheCap    = 128
	DefaultMetaserverPeersConnPool  = 10
	DefaultMetaserverPeersIOTimeout = 15 * time.Second
)

Variables

This section is empty.

Functions

func Metaserver

func Metaserver() api.Server

func NewMetaserver

func NewMetaserver(c *MetaserverConfig) api.Server

Types

type MetaserverConfig

type MetaserverConfig struct {
	Host           string
	ID             raft.ServerID
	PeerMap        *api.AddressMap
	DataDir        string
	LogCacheCap    int
	PeersConnPool  int
	PeersIOTimeout time.Duration
	Placer         clients.PlacerConfig
	// contains filtered or unexported fields
}

func DefaultMetaserverConfig

func DefaultMetaserverConfig() *MetaserverConfig

Jump to

Keyboard shortcuts

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