config

package
v0.0.0-...-56466e5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BaseURL     string
	BackendName string
	Debug       bool

	S3 S3Config
}

AppConfig contains app wide configuration

func New

func New() *AppConfig

New returns a new, empty AppConfig

func (*AppConfig) Parse

func (cfg *AppConfig) Parse(args []string) error

Parse parses the command line flags and builds the config

type S3Config

type S3Config struct {
	Region        string
	Bucket        string
	Prefix        string
	LocalSyncPath string
	Debug         bool
}

S3Config contains s3 specific config

Jump to

Keyboard shortcuts

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