config

package
v0.0.0-...-be1dbae Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() string

func InitConfig

func InitConfig()

Types

type Config

type Config struct {
	// AWS
	AwsAccessKey string `json:"aws_access_key"`
	AwsSecretKey string `json:"aws_secret_key"`

	// S3
	S3Bucket    string `json:"s3_bucket"`
	S3RotateOld bool   `json:"s3_rotate_old"`

	// PostgreSQL
	PostgresUsername     string   `json:"pg_username"`
	PostgresPassword     string   `json:"pg_password"`
	PostgresSSL          bool     `json:"pg_sslmode"`
	PostgresExcludeDb    []string `json:"pg_exclude_dbs"`
	PostgresExcludeTable []string `json:"pg_exclude_tables"`
}

func LoadConfig

func LoadConfig() *Config

func (*Config) Copy

func (c *Config) Copy() Config

func (*Config) PreFlight

func (c *Config) PreFlight() error

func (*Config) ShouldExcludeDb

func (c *Config) ShouldExcludeDb(db string) bool

func (*Config) ShouldExcludeTable

func (c *Config) ShouldExcludeTable(table string) bool

Jump to

Keyboard shortcuts

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