config

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel           string `json:"log_level"`
	LoggingTimestamp   bool   `json:"logging_timestamp"`
	Username           string
	Password           string
	DisableWeb         bool `json:"disable_web"`
	DisableMetrics     bool `json:"disable_metrics"`
	UnprotectedMetrics bool `json:"unprotected_metrics"`
	S3                 S3Config
	Services           map[string]ServiceConfig
	Foreground         bool
}

func Get

func Get() *Config

type S3Config added in v1.1.0

type S3Config struct {
	DisableSSL    bool   `json:"disable_ssl"`
	ServiceLabel  string `json:"service_label"`
	ServiceName   string `json:"service_name"`
	BucketName    string `json:"bucket_name"`
	EncryptionKey string `json:"encryption_key"`
}

type ServiceConfig added in v1.1.0

type ServiceConfig struct {
	Schedule  string
	Timeout   TimeoutDuration
	Retention struct {
		Days  int
		Files int
	}
	DisableColumnStatistics bool   `json:"disable_column_statistics"`
	LocalBackupPath         string `json:"local_backup_path"`
}

type TimeoutDuration added in v1.1.0

type TimeoutDuration struct {
	time.Duration
}

func (TimeoutDuration) MarshalJSON added in v1.1.0

func (td TimeoutDuration) MarshalJSON() ([]byte, error)

func (*TimeoutDuration) UnmarshalJSON added in v1.1.0

func (td *TimeoutDuration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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