Documentation ¶
Overview ¶
Package server represents the discovery server command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Globals Server serverCmd `cmd:"" help:"Start discovery grpc server" default:"1"` Exporter exporterCmd `cmd:"" help:"Start exporter server"` }
CLI is the server command.
type Etcd ¶
type Etcd struct { Endpoints []string `help:"Etcd endpoints" default:"localhost:2379"` User string `help:"Etcd user"` Password string `help:"Etcd password"` Cert string `help:"Etcd certificate"` Key string `help:"Etcd key"` Prefix string `help:"Etcd prefix" default:"/discovery"` CA string `help:"Etcd CA"` CertFile string `help:"Etcd cert file"` KeyFile string `help:"Etcd key file"` CAFile string `help:"Etcd CA file"` AutoSyncInterval time.Duration `help:"Etcd autosync interval" default:"10s"` DialTimeout time.Duration `help:"Etcd dial timeout" default:"5s"` RequestTimeout time.Duration `help:"Etcd request timeout" default:"5s"` }
Etcd contains the etcd configuration.
type Globals ¶
type Globals struct { Etcd `prefix:"etcd-"` // EnvHelp king.EnvHelpFlag `help:"Show context-sensitive help about environment variables"` Debug bool `help:"Show debug output"` ShowConfig king.ShowConfig `help:"Show used config files"` Version king.VersionFlag `help:"Show version information"` Profiler profilerFlags `embed:"true" prefix:"profiler-"` }
Globals are the global server flags.
Click to show internal directories.
Click to hide internal directories.