config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 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
	S3               S3Config
	Services         map[string]ServiceConfig
}

func Get

func Get() *Config

type S3Config added in v1.1.0

type S3Config struct {
	ServiceLabel string `json:"service_label"`
	BucketName   string `json:"bucket_name"`
}

type ServiceConfig added in v1.1.0

type ServiceConfig struct {
	Schedule  string
	Timeout   TimeoutDuration
	Retention struct {
		Days  int
		Files int
	}
}

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