config

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecksConfig

type HealthChecksConfig struct {
	SharedSecret string `yaml:"shared-secret"`
}

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"`
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL