Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct { TLS bool `yaml:"tls"` CertFile string `yaml:"cert"` KeyFile string `yaml:"key"` }
AuthConfig provides auth configuration
type Config ¶
type Config struct { APPName string `yaml:"appname"` Port int `yaml:"port"` Tracing *jaegercfg.Configuration `yaml:"tracing"` ServiceDiscovery ServiceDiscoveryCfg `yaml:"service-discovery"` Auth *AuthConfig `yaml:"auth"` UpstreamSetting string `yaml:"upstream-setting"` Properties map[string]string `yaml:"props"` }
Config defines all configuration of an application
type ServiceDiscoveryCfg ¶
type ServiceDiscoveryCfg struct { Type string `yaml:"type"` // consul or direct, default is direct Consul *consulapi.Config `yaml:"consul"` }
ServiceDiscoveryCfg provides config of service discovery
Click to show internal directories.
Click to hide internal directories.