server

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAutoscalerConfig

func RegisterAutoscalerConfig(cmd *cobra.Command)

func RegisterConfig

func RegisterConfig(cmd *cobra.Command)

func RegisterProviderConfig

func RegisterProviderConfig(cmd *cobra.Command)

func RegisterStorageConfig

func RegisterStorageConfig(cmd *cobra.Command)

RegisterStorageConfig register the storage CLI parameters for the state storage backend.

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 AutoscalerConfig

type AutoscalerConfig struct {
	Enabled  bool
	Interval int
	Threads  int
}

func GetAutoscalerConfig

func GetAutoscalerConfig() *AutoscalerConfig

type Config

type Config struct {
	Bind string
	Port uint16
}

func GetConfig

func GetConfig() Config

func (*Config) MarshalZerologObject

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

type ProviderConfig

type ProviderConfig struct {
	AWSASG bool
}

func GetProviderConfig

func GetProviderConfig() *ProviderConfig

type StorageConfig

type StorageConfig struct {
	ConsulEnabled bool
	ConsulPath    string
}

StorageConfig is the CLI configuration options for the state storage backend.

func GetStorageConfig

func GetStorageConfig() *StorageConfig

GetStorageConfig populates a StorageConfig object with the users CLI parameters.

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 {
	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