config

package
v0.0.0-...-57a9ff9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MPL-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 Config

type Config struct {
	AwsRegion                   string `envconfig:"AWS_REGION" required:"true"`
	AwsSqsQueueURL              string `envconfig:"AWS_SQS_QUEUE_URL" required:"true"`
	ConsumerThreads             int    `envconfig:"CONSUMER_THREADS" default:"5"`
	Debug                       bool   `envconfig:"DEBUG"`
	ShortHostname               bool   `envconfig:"SHORT_HOSTNAME"`
	DefaultVisibilityTimeoutSec int64  `envconfig:"DEFAULT_VISIBILITY_TIMEOUT_SEC" default:"300"`
	ErrorVisibilityTimeoutSec   int64  `envconfig:"ERROR_VISIBILITY_TIMEOUT_SEC" default:"60"`
	QueueWaitTimeSec            int64  `envconfig:"QUEUE_WAIT_TIME_SEC" default:"5"`
}

Config represents the application's configuration file.

func GetConfig

func GetConfig() (*Config, error)

GetConfig returns the application configuration specified by the config file.

Jump to

Keyboard shortcuts

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