Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Name string `yaml:"name"` ResolverType string `yaml:"resolver_type"` RefreshIntervalInSec int `yaml:"refresh_interval_in_sec"` Address string `yaml:"address"` NameSpace string `yaml:"name_space"` Port uint32 `yaml:"port"` LbPolicy string `yaml:"lb_policy"` }
Cluster a specific clluster config
type ControllerConfig ¶
type ControllerConfig struct { NodeId string `yaml:"node_id"` LogDebug bool `yaml:"log_debug"` MaxConcurrentStreams int `yaml:"max_concurrent_streams"` ListenerPort int `yaml:"listener_port"` PrometheusPort int `yaml:"prometheus_port"` Clusters []*Cluster `yaml:"clusters"` }
ControllerConfig cretes a list of services that are configured
func LoadConfig ¶
func LoadConfig() *ControllerConfig
LoadConfig initializes and parses yaml fileinto struct
Click to show internal directories.
Click to hide internal directories.