config

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithPath

func NewWithPath(path string) *multiconfig.DefaultLoader

NewWithPath returns a new instance of Loader to read from the given configuration file using our config options

Types

type Courier

type Courier struct {
	Backend string `default:"rapidpro"`

	SentryDSN string `default:""`

	BaseURL  string `default:"https://localhost:8080"`
	Port     int    `default:"8080"`
	DB       string `default:"postgres://courier@localhost/courier?sslmode=disable"`
	Redis    string `default:"redis://localhost:6379/0"`
	SpoolDir string `default:"/var/spool/courier"`

	S3Region      string `default:"us-east-1"`
	S3MediaBucket string `default:"courier-media"`
	S3MediaPrefix string `default:"/media/"`

	AWSAccessKeyID     string `default:"missing_aws_access_key_id"`
	AWSSecretAccessKey string `default:"missing_aws_secret_access_key"`

	MaxWorkers int `default:"32"`

	LibratoUsername string `default:""`
	LibratoToken    string `default:""`

	StatusUsername string `default:""`
	StatusPassword string `default:""`

	RapidproHandleURL string `default:"https://app.rapidpro.io/handlers/mage/handle_message"`
	RapidproToken     string `default:"missing_rapidpro_token"`

	LogLevel string `default:"error"`

	IncludeChannels []string
	ExcludeChannels []string

	Version string `default:"Dev"`
}

Courier is our top level configuration object

func NewTest

func NewTest() *Courier

NewTest returns a new instance of our config initialized just from our defaults as defined above

Jump to

Keyboard shortcuts

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