Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶ added in v0.6.5
func WithConfig(newConfig *Config)
WithConfig passes in a predefined Config to use for testing
Types ¶
type Config ¶
type Config struct { // Mastership is the mastership configuration Mastership MastershipConfig `yaml:"mastership,omitempty"` // Atomix is the Atomix configuration Atomix atomix.Config `yaml:"atomix,omitempty"` }
Config is the onos-config configuration
func GetConfigOrDie ¶
func GetConfigOrDie() Config
GetConfigOrDie gets the onos-config configuration or panics
type MastershipConfig ¶
type MastershipConfig struct { // Partitions is the number of store partitions Partitions int `yaml:"partitions,omitempty"` }
MastershipConfig is the configuration for store mastership
func (MastershipConfig) GetPartitions ¶
func (c MastershipConfig) GetPartitions() int
GetPartitions returns the number of store partitions
Click to show internal directories.
Click to hide internal directories.