server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClusterConfig added in v0.2.0

func RegisterClusterConfig(cmd *cobra.Command)

func RegisterConfig

func RegisterConfig(cmd *cobra.Command)

func RegisterMetricProviderConfig added in v0.4.0

func RegisterMetricProviderConfig(cmd *cobra.Command)

func RegisterTLSConfig

func RegisterTLSConfig(cmd *cobra.Command)

func RegisterTelemetryConfig

func RegisterTelemetryConfig(cmd *cobra.Command)

RegisterTelemetryConfig is used by a Cobra command to register the Telemetry CLI flags.

Types

type ClusterConfig added in v0.2.0

type ClusterConfig struct {
	Addr string
	Name string
}

func GetClusterConfig added in v0.2.0

func GetClusterConfig() ClusterConfig

func (*ClusterConfig) MarshalZerologObject added in v0.2.0

func (c *ClusterConfig) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject is the Zerolog marshaller which allow us to log the object.

type Config

type Config struct {
	Bind                         string
	ConsulStorageBackendPath     string
	Port                         uint16
	APIPolicyEngine              bool
	NomadMetaPolicyEngine        bool
	StrictPolicyChecking         bool
	InternalAutoScaler           bool
	ConsulStorageBackend         bool
	UI                           bool
	InternalAutoScalerEvalPeriod int
	InternalAutoScalerNumThreads int
}

func GetConfig

func GetConfig() Config

func (*Config) MarshalZerologObject

func (c *Config) MarshalZerologObject(e *zerolog.Event)

type MetricProviderConfig added in v0.4.0

type MetricProviderConfig struct {
	Prometheus *MetricProviderPrometheusConfig
}

func GetMetricProviderConfig added in v0.4.0

func GetMetricProviderConfig() *MetricProviderConfig

func (*MetricProviderConfig) MarshalZerologObject added in v0.4.0

func (mpc *MetricProviderConfig) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject is the Zerolog marshaller which allow us to log the object.

type MetricProviderPrometheusConfig added in v0.4.0

type MetricProviderPrometheusConfig struct {
	Addr string
}

type TLSConfig

type TLSConfig struct {
	CertPath    string
	CertKeyPath string
}

func GetTLSConfig

func GetTLSConfig() TLSConfig

func (*TLSConfig) MarshalZerologObject

func (c *TLSConfig) MarshalZerologObject(e *zerolog.Event)

type TelemetryConfig

type TelemetryConfig struct {
	Prometheus   bool
	StatsiteAddr string
	StatsdAddr   string
}

TelemetryConfig is the server Telemetry configuration struct.

func GetTelemetryConfig

func GetTelemetryConfig() TelemetryConfig

GetTelemetryConfig hydrates the telemetry config struct.

func (*TelemetryConfig) MarshalZerologObject

func (c *TelemetryConfig) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject is the Zerolog marshaller which allow us to log the object.

Jump to

Keyboard shortcuts

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