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