Documentation ¶
Index ¶
- type DiagnosticsConfig
- type HealthChecksConfig
- type Install
- type LoggerConfig
- type RefreshableBasicAuth
- type RefreshableBasicAuthPtr
- type RefreshableClientConfig
- type RefreshableDiagnosticsConfig
- type RefreshableHealthChecksConfig
- type RefreshableLogLevel
- type RefreshableLoggerConfig
- type RefreshableLoggerConfigPtr
- type RefreshableMetricsConfig
- type RefreshableRuntime
- type RefreshableSecurityConfig
- type RefreshableServicesConfig
- type RefreshableStringToClientConfig
- type RefreshableStringToString
- type RefreshingBasicAuth
- func (r RefreshingBasicAuth) CurrentBasicAuth() httpclient.BasicAuth
- func (r RefreshingBasicAuth) MapBasicAuth(mapFn func(httpclient.BasicAuth) interface{}) refreshable.Refreshable
- func (r RefreshingBasicAuth) Password() refreshable.String
- func (r RefreshingBasicAuth) SubscribeToBasicAuth(consumer func(httpclient.BasicAuth)) (unsubscribe func())
- func (r RefreshingBasicAuth) User() refreshable.String
- type RefreshingBasicAuthPtr
- func (r RefreshingBasicAuthPtr) CurrentBasicAuthPtr() *httpclient.BasicAuth
- func (r RefreshingBasicAuthPtr) MapBasicAuthPtr(mapFn func(*httpclient.BasicAuth) interface{}) refreshable.Refreshable
- func (r RefreshingBasicAuthPtr) Password() refreshable.String
- func (r RefreshingBasicAuthPtr) SubscribeToBasicAuthPtr(consumer func(*httpclient.BasicAuth)) (unsubscribe func())
- func (r RefreshingBasicAuthPtr) User() refreshable.String
- type RefreshingClientConfig
- func (r RefreshingClientConfig) APIToken() refreshable.StringPtr
- func (r RefreshingClientConfig) APITokenFile() refreshable.StringPtr
- func (r RefreshingClientConfig) BasicAuth() RefreshableBasicAuthPtr
- func (r RefreshingClientConfig) ConnectTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) CurrentClientConfig() httpclient.ClientConfig
- func (r RefreshingClientConfig) DisableHTTP2() refreshable.BoolPtr
- func (r RefreshingClientConfig) ExpectContinueTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) HTTP2PingTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) HTTP2ReadIdleTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) IdleConnTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) InitialBackoff() refreshable.DurationPtr
- func (r RefreshingClientConfig) MapClientConfig(mapFn func(httpclient.ClientConfig) interface{}) refreshable.Refreshable
- func (r RefreshingClientConfig) MaxBackoff() refreshable.DurationPtr
- func (r RefreshingClientConfig) MaxIdleConns() refreshable.IntPtr
- func (r RefreshingClientConfig) MaxIdleConnsPerHost() refreshable.IntPtr
- func (r RefreshingClientConfig) MaxNumRetries() refreshable.IntPtr
- func (r RefreshingClientConfig) Metrics() RefreshableMetricsConfig
- func (r RefreshingClientConfig) ProxyFromEnvironment() refreshable.BoolPtr
- func (r RefreshingClientConfig) ProxyURL() refreshable.StringPtr
- func (r RefreshingClientConfig) ReadTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) Security() RefreshableSecurityConfig
- func (r RefreshingClientConfig) ServiceName() refreshable.String
- func (r RefreshingClientConfig) SubscribeToClientConfig(consumer func(httpclient.ClientConfig)) (unsubscribe func())
- func (r RefreshingClientConfig) TLSHandshakeTimeout() refreshable.DurationPtr
- func (r RefreshingClientConfig) URIs() refreshable.StringSlice
- func (r RefreshingClientConfig) WriteTimeout() refreshable.DurationPtr
- type RefreshingDiagnosticsConfig
- func (r RefreshingDiagnosticsConfig) CurrentDiagnosticsConfig() DiagnosticsConfig
- func (r RefreshingDiagnosticsConfig) DebugSharedSecret() refreshable.String
- func (r RefreshingDiagnosticsConfig) MapDiagnosticsConfig(mapFn func(DiagnosticsConfig) interface{}) refreshable.Refreshable
- func (r RefreshingDiagnosticsConfig) SubscribeToDiagnosticsConfig(consumer func(DiagnosticsConfig)) (unsubscribe func())
- type RefreshingHealthChecksConfig
- func (r RefreshingHealthChecksConfig) CurrentHealthChecksConfig() HealthChecksConfig
- func (r RefreshingHealthChecksConfig) MapHealthChecksConfig(mapFn func(HealthChecksConfig) interface{}) refreshable.Refreshable
- func (r RefreshingHealthChecksConfig) SharedSecret() refreshable.String
- func (r RefreshingHealthChecksConfig) SubscribeToHealthChecksConfig(consumer func(HealthChecksConfig)) (unsubscribe func())
- type RefreshingLogLevel
- type RefreshingLoggerConfig
- func (r RefreshingLoggerConfig) CurrentLoggerConfig() LoggerConfig
- func (r RefreshingLoggerConfig) Level() RefreshableLogLevel
- func (r RefreshingLoggerConfig) MapLoggerConfig(mapFn func(LoggerConfig) interface{}) refreshable.Refreshable
- func (r RefreshingLoggerConfig) SubscribeToLoggerConfig(consumer func(LoggerConfig)) (unsubscribe func())
- type RefreshingLoggerConfigPtr
- func (r RefreshingLoggerConfigPtr) CurrentLoggerConfigPtr() *LoggerConfig
- func (r RefreshingLoggerConfigPtr) Level() RefreshableLogLevel
- func (r RefreshingLoggerConfigPtr) MapLoggerConfigPtr(mapFn func(*LoggerConfig) interface{}) refreshable.Refreshable
- func (r RefreshingLoggerConfigPtr) SubscribeToLoggerConfigPtr(consumer func(*LoggerConfig)) (unsubscribe func())
- type RefreshingMetricsConfig
- func (r RefreshingMetricsConfig) CurrentMetricsConfig() httpclient.MetricsConfig
- func (r RefreshingMetricsConfig) Enabled() refreshable.BoolPtr
- func (r RefreshingMetricsConfig) MapMetricsConfig(mapFn func(httpclient.MetricsConfig) interface{}) refreshable.Refreshable
- func (r RefreshingMetricsConfig) SubscribeToMetricsConfig(consumer func(httpclient.MetricsConfig)) (unsubscribe func())
- func (r RefreshingMetricsConfig) Tags() RefreshableStringToString
- type RefreshingRuntime
- func (r RefreshingRuntime) CurrentRuntime() Runtime
- func (r RefreshingRuntime) DiagnosticsConfig() RefreshableDiagnosticsConfig
- func (r RefreshingRuntime) HealthChecks() RefreshableHealthChecksConfig
- func (r RefreshingRuntime) LoggerConfig() RefreshableLoggerConfigPtr
- func (r RefreshingRuntime) MapRuntime(mapFn func(Runtime) interface{}) refreshable.Refreshable
- func (r RefreshingRuntime) ServiceDiscovery() RefreshableServicesConfig
- func (r RefreshingRuntime) SubscribeToRuntime(consumer func(Runtime)) (unsubscribe func())
- type RefreshingSecurityConfig
- func (r RefreshingSecurityConfig) CAFiles() refreshable.StringSlice
- func (r RefreshingSecurityConfig) CertFile() refreshable.String
- func (r RefreshingSecurityConfig) CurrentSecurityConfig() httpclient.SecurityConfig
- func (r RefreshingSecurityConfig) KeyFile() refreshable.String
- func (r RefreshingSecurityConfig) MapSecurityConfig(mapFn func(httpclient.SecurityConfig) interface{}) refreshable.Refreshable
- func (r RefreshingSecurityConfig) SubscribeToSecurityConfig(consumer func(httpclient.SecurityConfig)) (unsubscribe func())
- type RefreshingServicesConfig
- func (r RefreshingServicesConfig) CurrentServicesConfig() httpclient.ServicesConfig
- func (r RefreshingServicesConfig) Default() RefreshableClientConfig
- func (r RefreshingServicesConfig) MapServicesConfig(mapFn func(httpclient.ServicesConfig) interface{}) refreshable.Refreshable
- func (r RefreshingServicesConfig) Services() RefreshableStringToClientConfig
- func (r RefreshingServicesConfig) SubscribeToServicesConfig(consumer func(httpclient.ServicesConfig)) (unsubscribe func())
- type RefreshingStringToClientConfig
- func (r RefreshingStringToClientConfig) CurrentStringToClientConfig() map[string]httpclient.ClientConfig
- func (r RefreshingStringToClientConfig) MapStringToClientConfig(mapFn func(map[string]httpclient.ClientConfig) interface{}) refreshable.Refreshable
- func (r RefreshingStringToClientConfig) SubscribeToStringToClientConfig(consumer func(map[string]httpclient.ClientConfig)) (unsubscribe func())
- type RefreshingStringToString
- func (r RefreshingStringToString) CurrentStringToString() map[string]string
- func (r RefreshingStringToString) MapStringToString(mapFn func(map[string]string) interface{}) refreshable.Refreshable
- func (r RefreshingStringToString) SubscribeToStringToString(consumer func(map[string]string)) (unsubscribe func())
- type Runtime
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagnosticsConfig ¶ added in v2.2.1
type DiagnosticsConfig struct {
}type HealthChecksConfig ¶
type HealthChecksConfig struct {
}type Install ¶
type Install struct { ProductName string `yaml:"product-name,omitempty"` ProductVersion string `yaml:"product-version,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"` UseWrappedLogs bool `yaml:"use-wrapped-logs,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 RefreshableBasicAuth ¶ added in v2.56.0
type RefreshableBasicAuth interface { refreshable.Refreshable CurrentBasicAuth() httpclient.BasicAuth MapBasicAuth(func(httpclient.BasicAuth) interface{}) refreshable.Refreshable SubscribeToBasicAuth(func(httpclient.BasicAuth)) (unsubscribe func()) User() refreshable.String Password() refreshable.String }
type RefreshableBasicAuthPtr ¶ added in v2.56.0
type RefreshableBasicAuthPtr interface { refreshable.Refreshable CurrentBasicAuthPtr() *httpclient.BasicAuth MapBasicAuthPtr(func(*httpclient.BasicAuth) interface{}) refreshable.Refreshable SubscribeToBasicAuthPtr(func(*httpclient.BasicAuth)) (unsubscribe func()) User() refreshable.String Password() refreshable.String }
type RefreshableClientConfig ¶ added in v2.22.0
type RefreshableClientConfig interface { refreshable.Refreshable CurrentClientConfig() httpclient.ClientConfig MapClientConfig(func(httpclient.ClientConfig) interface{}) refreshable.Refreshable SubscribeToClientConfig(func(httpclient.ClientConfig)) (unsubscribe func()) ServiceName() refreshable.String URIs() refreshable.StringSlice APIToken() refreshable.StringPtr APITokenFile() refreshable.StringPtr BasicAuth() RefreshableBasicAuthPtr DisableHTTP2() refreshable.BoolPtr ProxyFromEnvironment() refreshable.BoolPtr ProxyURL() refreshable.StringPtr MaxNumRetries() refreshable.IntPtr InitialBackoff() refreshable.DurationPtr MaxBackoff() refreshable.DurationPtr ConnectTimeout() refreshable.DurationPtr ReadTimeout() refreshable.DurationPtr WriteTimeout() refreshable.DurationPtr IdleConnTimeout() refreshable.DurationPtr TLSHandshakeTimeout() refreshable.DurationPtr ExpectContinueTimeout() refreshable.DurationPtr HTTP2ReadIdleTimeout() refreshable.DurationPtr HTTP2PingTimeout() refreshable.DurationPtr MaxIdleConns() refreshable.IntPtr MaxIdleConnsPerHost() refreshable.IntPtr Metrics() RefreshableMetricsConfig Security() RefreshableSecurityConfig }
type RefreshableDiagnosticsConfig ¶ added in v2.22.0
type RefreshableDiagnosticsConfig interface { refreshable.Refreshable CurrentDiagnosticsConfig() DiagnosticsConfig MapDiagnosticsConfig(func(DiagnosticsConfig) interface{}) refreshable.Refreshable SubscribeToDiagnosticsConfig(func(DiagnosticsConfig)) (unsubscribe func()) }
type RefreshableHealthChecksConfig ¶ added in v2.22.0
type RefreshableHealthChecksConfig interface { refreshable.Refreshable CurrentHealthChecksConfig() HealthChecksConfig MapHealthChecksConfig(func(HealthChecksConfig) interface{}) refreshable.Refreshable SubscribeToHealthChecksConfig(func(HealthChecksConfig)) (unsubscribe func()) }
type RefreshableLogLevel ¶ added in v2.22.0
type RefreshableLogLevel interface { refreshable.Refreshable CurrentLogLevel() wlog.LogLevel MapLogLevel(func(wlog.LogLevel) interface{}) refreshable.Refreshable SubscribeToLogLevel(func(wlog.LogLevel)) (unsubscribe func()) }
type RefreshableLoggerConfig ¶ added in v2.22.0
type RefreshableLoggerConfig interface { refreshable.Refreshable CurrentLoggerConfig() LoggerConfig MapLoggerConfig(func(LoggerConfig) interface{}) refreshable.Refreshable SubscribeToLoggerConfig(func(LoggerConfig)) (unsubscribe func()) Level() RefreshableLogLevel }
type RefreshableLoggerConfigPtr ¶ added in v2.22.0
type RefreshableLoggerConfigPtr interface { refreshable.Refreshable CurrentLoggerConfigPtr() *LoggerConfig MapLoggerConfigPtr(func(*LoggerConfig) interface{}) refreshable.Refreshable SubscribeToLoggerConfigPtr(func(*LoggerConfig)) (unsubscribe func()) Level() RefreshableLogLevel }
type RefreshableMetricsConfig ¶ added in v2.22.0
type RefreshableMetricsConfig interface { refreshable.Refreshable CurrentMetricsConfig() httpclient.MetricsConfig MapMetricsConfig(func(httpclient.MetricsConfig) interface{}) refreshable.Refreshable SubscribeToMetricsConfig(func(httpclient.MetricsConfig)) (unsubscribe func()) Enabled() refreshable.BoolPtr Tags() RefreshableStringToString }
type RefreshableRuntime ¶ added in v2.22.0
type RefreshableRuntime interface { refreshable.Refreshable CurrentRuntime() Runtime MapRuntime(func(Runtime) interface{}) refreshable.Refreshable SubscribeToRuntime(func(Runtime)) (unsubscribe func()) DiagnosticsConfig() RefreshableDiagnosticsConfig HealthChecks() RefreshableHealthChecksConfig LoggerConfig() RefreshableLoggerConfigPtr ServiceDiscovery() RefreshableServicesConfig }
type RefreshableSecurityConfig ¶ added in v2.22.0
type RefreshableSecurityConfig interface { refreshable.Refreshable CurrentSecurityConfig() httpclient.SecurityConfig MapSecurityConfig(func(httpclient.SecurityConfig) interface{}) refreshable.Refreshable SubscribeToSecurityConfig(func(httpclient.SecurityConfig)) (unsubscribe func()) CAFiles() refreshable.StringSlice CertFile() refreshable.String KeyFile() refreshable.String }
type RefreshableServicesConfig ¶ added in v2.22.0
type RefreshableServicesConfig interface { refreshable.Refreshable CurrentServicesConfig() httpclient.ServicesConfig MapServicesConfig(func(httpclient.ServicesConfig) interface{}) refreshable.Refreshable SubscribeToServicesConfig(func(httpclient.ServicesConfig)) (unsubscribe func()) Default() RefreshableClientConfig Services() RefreshableStringToClientConfig }
type RefreshableStringToClientConfig ¶ added in v2.22.0
type RefreshableStringToClientConfig interface { refreshable.Refreshable CurrentStringToClientConfig() map[string]httpclient.ClientConfig MapStringToClientConfig(func(map[string]httpclient.ClientConfig) interface{}) refreshable.Refreshable SubscribeToStringToClientConfig(func(map[string]httpclient.ClientConfig)) (unsubscribe func()) }
type RefreshableStringToString ¶ added in v2.22.0
type RefreshableStringToString interface { refreshable.Refreshable CurrentStringToString() map[string]string MapStringToString(func(map[string]string) interface{}) refreshable.Refreshable SubscribeToStringToString(func(map[string]string)) (unsubscribe func()) }
type RefreshingBasicAuth ¶ added in v2.56.0
type RefreshingBasicAuth struct {
refreshable.Refreshable
}
func NewRefreshingBasicAuth ¶ added in v2.56.0
func NewRefreshingBasicAuth(in refreshable.Refreshable) RefreshingBasicAuth
func (RefreshingBasicAuth) CurrentBasicAuth ¶ added in v2.56.0
func (r RefreshingBasicAuth) CurrentBasicAuth() httpclient.BasicAuth
func (RefreshingBasicAuth) MapBasicAuth ¶ added in v2.56.0
func (r RefreshingBasicAuth) MapBasicAuth(mapFn func(httpclient.BasicAuth) interface{}) refreshable.Refreshable
func (RefreshingBasicAuth) Password ¶ added in v2.56.0
func (r RefreshingBasicAuth) Password() refreshable.String
func (RefreshingBasicAuth) SubscribeToBasicAuth ¶ added in v2.56.0
func (r RefreshingBasicAuth) SubscribeToBasicAuth(consumer func(httpclient.BasicAuth)) (unsubscribe func())
func (RefreshingBasicAuth) User ¶ added in v2.56.0
func (r RefreshingBasicAuth) User() refreshable.String
type RefreshingBasicAuthPtr ¶ added in v2.56.0
type RefreshingBasicAuthPtr struct {
refreshable.Refreshable
}
func NewRefreshingBasicAuthPtr ¶ added in v2.56.0
func NewRefreshingBasicAuthPtr(in refreshable.Refreshable) RefreshingBasicAuthPtr
func (RefreshingBasicAuthPtr) CurrentBasicAuthPtr ¶ added in v2.56.0
func (r RefreshingBasicAuthPtr) CurrentBasicAuthPtr() *httpclient.BasicAuth
func (RefreshingBasicAuthPtr) MapBasicAuthPtr ¶ added in v2.56.0
func (r RefreshingBasicAuthPtr) MapBasicAuthPtr(mapFn func(*httpclient.BasicAuth) interface{}) refreshable.Refreshable
func (RefreshingBasicAuthPtr) Password ¶ added in v2.56.0
func (r RefreshingBasicAuthPtr) Password() refreshable.String
func (RefreshingBasicAuthPtr) SubscribeToBasicAuthPtr ¶ added in v2.56.0
func (r RefreshingBasicAuthPtr) SubscribeToBasicAuthPtr(consumer func(*httpclient.BasicAuth)) (unsubscribe func())
func (RefreshingBasicAuthPtr) User ¶ added in v2.56.0
func (r RefreshingBasicAuthPtr) User() refreshable.String
type RefreshingClientConfig ¶ added in v2.22.0
type RefreshingClientConfig struct {
refreshable.Refreshable
}
func NewRefreshingClientConfig ¶ added in v2.22.0
func NewRefreshingClientConfig(in refreshable.Refreshable) RefreshingClientConfig
func (RefreshingClientConfig) APIToken ¶ added in v2.22.0
func (r RefreshingClientConfig) APIToken() refreshable.StringPtr
func (RefreshingClientConfig) APITokenFile ¶ added in v2.22.0
func (r RefreshingClientConfig) APITokenFile() refreshable.StringPtr
func (RefreshingClientConfig) BasicAuth ¶ added in v2.56.0
func (r RefreshingClientConfig) BasicAuth() RefreshableBasicAuthPtr
func (RefreshingClientConfig) ConnectTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) ConnectTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) CurrentClientConfig ¶ added in v2.22.0
func (r RefreshingClientConfig) CurrentClientConfig() httpclient.ClientConfig
func (RefreshingClientConfig) DisableHTTP2 ¶ added in v2.22.0
func (r RefreshingClientConfig) DisableHTTP2() refreshable.BoolPtr
func (RefreshingClientConfig) ExpectContinueTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) ExpectContinueTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) HTTP2PingTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) HTTP2PingTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) HTTP2ReadIdleTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) HTTP2ReadIdleTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) IdleConnTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) IdleConnTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) InitialBackoff ¶ added in v2.22.0
func (r RefreshingClientConfig) InitialBackoff() refreshable.DurationPtr
func (RefreshingClientConfig) MapClientConfig ¶ added in v2.22.0
func (r RefreshingClientConfig) MapClientConfig(mapFn func(httpclient.ClientConfig) interface{}) refreshable.Refreshable
func (RefreshingClientConfig) MaxBackoff ¶ added in v2.22.0
func (r RefreshingClientConfig) MaxBackoff() refreshable.DurationPtr
func (RefreshingClientConfig) MaxIdleConns ¶ added in v2.22.0
func (r RefreshingClientConfig) MaxIdleConns() refreshable.IntPtr
func (RefreshingClientConfig) MaxIdleConnsPerHost ¶ added in v2.22.0
func (r RefreshingClientConfig) MaxIdleConnsPerHost() refreshable.IntPtr
func (RefreshingClientConfig) MaxNumRetries ¶ added in v2.22.0
func (r RefreshingClientConfig) MaxNumRetries() refreshable.IntPtr
func (RefreshingClientConfig) Metrics ¶ added in v2.22.0
func (r RefreshingClientConfig) Metrics() RefreshableMetricsConfig
func (RefreshingClientConfig) ProxyFromEnvironment ¶ added in v2.22.0
func (r RefreshingClientConfig) ProxyFromEnvironment() refreshable.BoolPtr
func (RefreshingClientConfig) ProxyURL ¶ added in v2.22.0
func (r RefreshingClientConfig) ProxyURL() refreshable.StringPtr
func (RefreshingClientConfig) ReadTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) ReadTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) Security ¶ added in v2.22.0
func (r RefreshingClientConfig) Security() RefreshableSecurityConfig
func (RefreshingClientConfig) ServiceName ¶ added in v2.22.0
func (r RefreshingClientConfig) ServiceName() refreshable.String
func (RefreshingClientConfig) SubscribeToClientConfig ¶ added in v2.22.0
func (r RefreshingClientConfig) SubscribeToClientConfig(consumer func(httpclient.ClientConfig)) (unsubscribe func())
func (RefreshingClientConfig) TLSHandshakeTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) TLSHandshakeTimeout() refreshable.DurationPtr
func (RefreshingClientConfig) URIs ¶ added in v2.22.0
func (r RefreshingClientConfig) URIs() refreshable.StringSlice
func (RefreshingClientConfig) WriteTimeout ¶ added in v2.22.0
func (r RefreshingClientConfig) WriteTimeout() refreshable.DurationPtr
type RefreshingDiagnosticsConfig ¶ added in v2.22.0
type RefreshingDiagnosticsConfig struct {
refreshable.Refreshable
}
func NewRefreshingDiagnosticsConfig ¶ added in v2.22.0
func NewRefreshingDiagnosticsConfig(in refreshable.Refreshable) RefreshingDiagnosticsConfig
func (RefreshingDiagnosticsConfig) CurrentDiagnosticsConfig ¶ added in v2.22.0
func (r RefreshingDiagnosticsConfig) CurrentDiagnosticsConfig() DiagnosticsConfig
func (RefreshingDiagnosticsConfig) DebugSharedSecret ¶ added in v2.22.0
func (r RefreshingDiagnosticsConfig) DebugSharedSecret() refreshable.String
func (RefreshingDiagnosticsConfig) MapDiagnosticsConfig ¶ added in v2.22.0
func (r RefreshingDiagnosticsConfig) MapDiagnosticsConfig(mapFn func(DiagnosticsConfig) interface{}) refreshable.Refreshable
func (RefreshingDiagnosticsConfig) SubscribeToDiagnosticsConfig ¶ added in v2.22.0
func (r RefreshingDiagnosticsConfig) SubscribeToDiagnosticsConfig(consumer func(DiagnosticsConfig)) (unsubscribe func())
type RefreshingHealthChecksConfig ¶ added in v2.22.0
type RefreshingHealthChecksConfig struct {
refreshable.Refreshable
}
func NewRefreshingHealthChecksConfig ¶ added in v2.22.0
func NewRefreshingHealthChecksConfig(in refreshable.Refreshable) RefreshingHealthChecksConfig
func (RefreshingHealthChecksConfig) CurrentHealthChecksConfig ¶ added in v2.22.0
func (r RefreshingHealthChecksConfig) CurrentHealthChecksConfig() HealthChecksConfig
func (RefreshingHealthChecksConfig) MapHealthChecksConfig ¶ added in v2.22.0
func (r RefreshingHealthChecksConfig) MapHealthChecksConfig(mapFn func(HealthChecksConfig) interface{}) refreshable.Refreshable
func (RefreshingHealthChecksConfig) SharedSecret ¶ added in v2.22.0
func (r RefreshingHealthChecksConfig) SharedSecret() refreshable.String
func (RefreshingHealthChecksConfig) SubscribeToHealthChecksConfig ¶ added in v2.22.0
func (r RefreshingHealthChecksConfig) SubscribeToHealthChecksConfig(consumer func(HealthChecksConfig)) (unsubscribe func())
type RefreshingLogLevel ¶ added in v2.22.0
type RefreshingLogLevel struct {
refreshable.Refreshable
}
func NewRefreshingLogLevel ¶ added in v2.22.0
func NewRefreshingLogLevel(in refreshable.Refreshable) RefreshingLogLevel
func (RefreshingLogLevel) CurrentLogLevel ¶ added in v2.22.0
func (r RefreshingLogLevel) CurrentLogLevel() wlog.LogLevel
func (RefreshingLogLevel) MapLogLevel ¶ added in v2.22.0
func (r RefreshingLogLevel) MapLogLevel(mapFn func(wlog.LogLevel) interface{}) refreshable.Refreshable
func (RefreshingLogLevel) SubscribeToLogLevel ¶ added in v2.22.0
func (r RefreshingLogLevel) SubscribeToLogLevel(consumer func(wlog.LogLevel)) (unsubscribe func())
type RefreshingLoggerConfig ¶ added in v2.22.0
type RefreshingLoggerConfig struct {
refreshable.Refreshable
}
func NewRefreshingLoggerConfig ¶ added in v2.22.0
func NewRefreshingLoggerConfig(in refreshable.Refreshable) RefreshingLoggerConfig
func (RefreshingLoggerConfig) CurrentLoggerConfig ¶ added in v2.22.0
func (r RefreshingLoggerConfig) CurrentLoggerConfig() LoggerConfig
func (RefreshingLoggerConfig) Level ¶ added in v2.22.0
func (r RefreshingLoggerConfig) Level() RefreshableLogLevel
func (RefreshingLoggerConfig) MapLoggerConfig ¶ added in v2.22.0
func (r RefreshingLoggerConfig) MapLoggerConfig(mapFn func(LoggerConfig) interface{}) refreshable.Refreshable
func (RefreshingLoggerConfig) SubscribeToLoggerConfig ¶ added in v2.22.0
func (r RefreshingLoggerConfig) SubscribeToLoggerConfig(consumer func(LoggerConfig)) (unsubscribe func())
type RefreshingLoggerConfigPtr ¶ added in v2.22.0
type RefreshingLoggerConfigPtr struct {
refreshable.Refreshable
}
func NewRefreshingLoggerConfigPtr ¶ added in v2.22.0
func NewRefreshingLoggerConfigPtr(in refreshable.Refreshable) RefreshingLoggerConfigPtr
func (RefreshingLoggerConfigPtr) CurrentLoggerConfigPtr ¶ added in v2.22.0
func (r RefreshingLoggerConfigPtr) CurrentLoggerConfigPtr() *LoggerConfig
func (RefreshingLoggerConfigPtr) Level ¶ added in v2.22.0
func (r RefreshingLoggerConfigPtr) Level() RefreshableLogLevel
func (RefreshingLoggerConfigPtr) MapLoggerConfigPtr ¶ added in v2.22.0
func (r RefreshingLoggerConfigPtr) MapLoggerConfigPtr(mapFn func(*LoggerConfig) interface{}) refreshable.Refreshable
func (RefreshingLoggerConfigPtr) SubscribeToLoggerConfigPtr ¶ added in v2.22.0
func (r RefreshingLoggerConfigPtr) SubscribeToLoggerConfigPtr(consumer func(*LoggerConfig)) (unsubscribe func())
type RefreshingMetricsConfig ¶ added in v2.22.0
type RefreshingMetricsConfig struct {
refreshable.Refreshable
}
func NewRefreshingMetricsConfig ¶ added in v2.22.0
func NewRefreshingMetricsConfig(in refreshable.Refreshable) RefreshingMetricsConfig
func (RefreshingMetricsConfig) CurrentMetricsConfig ¶ added in v2.22.0
func (r RefreshingMetricsConfig) CurrentMetricsConfig() httpclient.MetricsConfig
func (RefreshingMetricsConfig) Enabled ¶ added in v2.22.0
func (r RefreshingMetricsConfig) Enabled() refreshable.BoolPtr
func (RefreshingMetricsConfig) MapMetricsConfig ¶ added in v2.22.0
func (r RefreshingMetricsConfig) MapMetricsConfig(mapFn func(httpclient.MetricsConfig) interface{}) refreshable.Refreshable
func (RefreshingMetricsConfig) SubscribeToMetricsConfig ¶ added in v2.22.0
func (r RefreshingMetricsConfig) SubscribeToMetricsConfig(consumer func(httpclient.MetricsConfig)) (unsubscribe func())
func (RefreshingMetricsConfig) Tags ¶ added in v2.22.0
func (r RefreshingMetricsConfig) Tags() RefreshableStringToString
type RefreshingRuntime ¶ added in v2.22.0
type RefreshingRuntime struct {
refreshable.Refreshable
}
func NewRefreshingRuntime ¶ added in v2.22.0
func NewRefreshingRuntime(in refreshable.Refreshable) RefreshingRuntime
func (RefreshingRuntime) CurrentRuntime ¶ added in v2.22.0
func (r RefreshingRuntime) CurrentRuntime() Runtime
func (RefreshingRuntime) DiagnosticsConfig ¶ added in v2.22.0
func (r RefreshingRuntime) DiagnosticsConfig() RefreshableDiagnosticsConfig
func (RefreshingRuntime) HealthChecks ¶ added in v2.22.0
func (r RefreshingRuntime) HealthChecks() RefreshableHealthChecksConfig
func (RefreshingRuntime) LoggerConfig ¶ added in v2.22.0
func (r RefreshingRuntime) LoggerConfig() RefreshableLoggerConfigPtr
func (RefreshingRuntime) MapRuntime ¶ added in v2.22.0
func (r RefreshingRuntime) MapRuntime(mapFn func(Runtime) interface{}) refreshable.Refreshable
func (RefreshingRuntime) ServiceDiscovery ¶ added in v2.22.0
func (r RefreshingRuntime) ServiceDiscovery() RefreshableServicesConfig
func (RefreshingRuntime) SubscribeToRuntime ¶ added in v2.22.0
func (r RefreshingRuntime) SubscribeToRuntime(consumer func(Runtime)) (unsubscribe func())
type RefreshingSecurityConfig ¶ added in v2.22.0
type RefreshingSecurityConfig struct {
refreshable.Refreshable
}
func NewRefreshingSecurityConfig ¶ added in v2.22.0
func NewRefreshingSecurityConfig(in refreshable.Refreshable) RefreshingSecurityConfig
func (RefreshingSecurityConfig) CAFiles ¶ added in v2.22.0
func (r RefreshingSecurityConfig) CAFiles() refreshable.StringSlice
func (RefreshingSecurityConfig) CertFile ¶ added in v2.22.0
func (r RefreshingSecurityConfig) CertFile() refreshable.String
func (RefreshingSecurityConfig) CurrentSecurityConfig ¶ added in v2.22.0
func (r RefreshingSecurityConfig) CurrentSecurityConfig() httpclient.SecurityConfig
func (RefreshingSecurityConfig) KeyFile ¶ added in v2.22.0
func (r RefreshingSecurityConfig) KeyFile() refreshable.String
func (RefreshingSecurityConfig) MapSecurityConfig ¶ added in v2.22.0
func (r RefreshingSecurityConfig) MapSecurityConfig(mapFn func(httpclient.SecurityConfig) interface{}) refreshable.Refreshable
func (RefreshingSecurityConfig) SubscribeToSecurityConfig ¶ added in v2.22.0
func (r RefreshingSecurityConfig) SubscribeToSecurityConfig(consumer func(httpclient.SecurityConfig)) (unsubscribe func())
type RefreshingServicesConfig ¶ added in v2.22.0
type RefreshingServicesConfig struct {
refreshable.Refreshable
}
func NewRefreshingServicesConfig ¶ added in v2.22.0
func NewRefreshingServicesConfig(in refreshable.Refreshable) RefreshingServicesConfig
func (RefreshingServicesConfig) CurrentServicesConfig ¶ added in v2.22.0
func (r RefreshingServicesConfig) CurrentServicesConfig() httpclient.ServicesConfig
func (RefreshingServicesConfig) Default ¶ added in v2.22.0
func (r RefreshingServicesConfig) Default() RefreshableClientConfig
func (RefreshingServicesConfig) MapServicesConfig ¶ added in v2.22.0
func (r RefreshingServicesConfig) MapServicesConfig(mapFn func(httpclient.ServicesConfig) interface{}) refreshable.Refreshable
func (RefreshingServicesConfig) Services ¶ added in v2.22.0
func (r RefreshingServicesConfig) Services() RefreshableStringToClientConfig
func (RefreshingServicesConfig) SubscribeToServicesConfig ¶ added in v2.22.0
func (r RefreshingServicesConfig) SubscribeToServicesConfig(consumer func(httpclient.ServicesConfig)) (unsubscribe func())
type RefreshingStringToClientConfig ¶ added in v2.22.0
type RefreshingStringToClientConfig struct {
refreshable.Refreshable
}
func NewRefreshingStringToClientConfig ¶ added in v2.22.0
func NewRefreshingStringToClientConfig(in refreshable.Refreshable) RefreshingStringToClientConfig
func (RefreshingStringToClientConfig) CurrentStringToClientConfig ¶ added in v2.22.0
func (r RefreshingStringToClientConfig) CurrentStringToClientConfig() map[string]httpclient.ClientConfig
func (RefreshingStringToClientConfig) MapStringToClientConfig ¶ added in v2.22.0
func (r RefreshingStringToClientConfig) MapStringToClientConfig(mapFn func(map[string]httpclient.ClientConfig) interface{}) refreshable.Refreshable
func (RefreshingStringToClientConfig) SubscribeToStringToClientConfig ¶ added in v2.22.0
func (r RefreshingStringToClientConfig) SubscribeToStringToClientConfig(consumer func(map[string]httpclient.ClientConfig)) (unsubscribe func())
type RefreshingStringToString ¶ added in v2.22.0
type RefreshingStringToString struct {
refreshable.Refreshable
}
func NewRefreshingStringToString ¶ added in v2.22.0
func NewRefreshingStringToString(in refreshable.Refreshable) RefreshingStringToString
func (RefreshingStringToString) CurrentStringToString ¶ added in v2.22.0
func (r RefreshingStringToString) CurrentStringToString() map[string]string
func (RefreshingStringToString) MapStringToString ¶ added in v2.22.0
func (r RefreshingStringToString) MapStringToString(mapFn func(map[string]string) interface{}) refreshable.Refreshable
func (RefreshingStringToString) SubscribeToStringToString ¶ added in v2.22.0
func (r RefreshingStringToString) SubscribeToStringToString(consumer func(map[string]string)) (unsubscribe func())
type Runtime ¶
type Runtime struct { DiagnosticsConfig DiagnosticsConfig `yaml:"diagnostics,omitempty"` HealthChecks HealthChecksConfig `yaml:"health-checks,omitempty"` LoggerConfig *LoggerConfig `yaml:"logging,omitempty"` ServiceDiscovery httpclient.ServicesConfig `yaml:"service-discovery,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.