Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalFlags ¶
GlobalFlags are flags available to all commands (appear before subcommand)
func SetVersionInfo ¶
func SetVersionInfo(v, c, b string)
SetVersionInfo allows setting version info from main via ldflags
Types ¶
type ServerConfig ¶
type ServerConfig struct {
ConfigDir string `koanf:"-" default:"/etc/mithril.d"`
DataDir string `koanf:"-"`
Cluster string `koanf:"cluster"`
Etcd configetcd.Client `koanf:"etcd"`
Health confighealth.Server `koanf:"health"`
Log configlog.Logger `koanf:"log"`
Node struct {
Advertise configadvertisement.AdvertisementConfig `koanf:"advertise"`
GRPC configgrpc.Server `koanf:"grpc"`
Labels map[string]string `koanf:"labels"`
Peer struct {
GRPC configgrpc.Client `koanf:"grpc"`
} `koanf:"peer"`
} `koanf:",squash"`
PProf configpprof.Server `koanf:"pprof"`
Volumes []struct {
Labels map[string]string `koanf:"labels"`
} `koanf:"volumes"`
}
Click to show internal directories.
Click to hide internal directories.