Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecksConfig ¶
type HealthChecksConfig struct {
}type Install ¶
type Install struct { ProductName string `yaml:"product-name,omitempty"` Server Server `yaml:"server,omitempty"` MetricsEmitFrequency time.Duration `yaml:"metrics-emit-frequency,omitempty"` TraceSampleRate *float64 `yaml:"trace-sample-rate,omitempty"` ManagementTraceSampleRate *float64 `yaml:"management-trace-sample-rate,omitempty"` UseConsoleLog bool `yaml:"use-console-log,omitempty"` }
Install specifies the base install configuration fields that should be included in all witchcraft-go-server server install configurations.
type LoggerConfig ¶
type LoggerConfig struct { // Level configures the log level for leveled loggers (such as service logs). Does not impact non-leveled loggers // (such as request logs). Level wlog.LogLevel `yaml:"level"` }
func (*LoggerConfig) UnmarshalYAML ¶
func (c *LoggerConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
type Runtime ¶
type Runtime struct { HealthChecks HealthChecksConfig `yaml:"health-checks,omitempty"` LoggerConfig *LoggerConfig `yaml:"logging,omitempty"` }
Runtime specifies the base runtime configuration fields that should be included in all witchcraft-server-go server runtime configurations.
type Server ¶
type Server struct { Address string `yaml:"address,omitempty"` Port int `yaml:"port,omitempty" ` ManagementPort int `yaml:"management-port,omitempty" ` ContextPath string `yaml:"context-path,omitempty"` ClientCAFiles []string `yaml:"client-ca-files,omitempty"` CertFile string `yaml:"cert-file,omitempty"` KeyFile string `yaml:"key-file,omitempty"` }
Click to show internal directories.
Click to hide internal directories.