Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDatadir ¶
func SetDatadir ¶
func SetDatadir(dir string)
Types ¶
type BasicAuth ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Logging LoggingConfig `yaml:"logging,omitempty"` Server ServerConfig `yaml:"server"` Authorizations []BasicAuth `yaml:"auth,omitempty"` Metrics MetricsConfig `yaml:"metrics,omitempty"` Neighbors map[string]NeighborConfig `yaml:"neighbors,omitempty"` // contains filtered or unexported fields }
The root config item
func (*Config) ParseDatadir ¶
func (*Config) SetupLogger ¶
func (self *Config) SetupLogger()
func (Config) ValidateSchema ¶
type LoggingConfig ¶
type LoggingConfig struct { Output string `yaml:"output,omitempty"` Level string `yaml:"level,omitempty"` Syslog SyslogConfig `yaml:"syslog,omitempty"` }
type MetricsConfig ¶
type MetricsConfig struct {
BearerToken string `yaml:"bearer_token,omitempty"`
}
type NeighborConfig ¶
type NeighborConfig struct {
Peers []PeerConfig
}
type PeerConfig ¶
type ServerConfig ¶
type ServerConfig struct { Bind string `yaml:"bind,omitempty"` HttpBind string `yaml:"http_bind,omitempty"` TLS ServerTLSConfig `yaml:"tls,omitempty"` }
type ServerTLSConfig ¶
type SyslogConfig ¶
Click to show internal directories.
Click to hide internal directories.