config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 4 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 `default:"info" split_words:"true"`
	LoggingTimestamp bool   `split_words:"true"`
	Username         string `required:"true"`
	Password         string `required:"true"`
	S3               struct {
		ServiceLabel string `default:"dynstrg" split_words:"true"`
		BucketName   string `split_words:"true"`
	}
	Backup struct {
		Schedules map[string]string
		Timeouts  map[string]time.Duration
		Retention struct {
			Days  map[string]int
			Files map[string]int
		}
	}
}

func Get

func Get() *Config

Jump to

Keyboard shortcuts

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