config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2016 License: MIT Imports: 2 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 {
	Env string `envconfig:"ENVIRONMENT" default:"development"`

	ListenAddress string `envconfig:"LISTEN_ADDRESS" default:"127.0.0.1:8080"`
	CanonicalURL  string `envconfig:"CANONICAL_URL"  default:"http://localhost:8080"`

	FacebookClientId     string `envconfig:"FACEBOOK_CLIENT_ID"     required:"true"`
	FacebookClientSecret string `envconfig:"FACEBOOK_CLIENT_SECRET" required:"true"`

	RedditClientId     string `envconfig:"REDDIT_CLIENT_ID"     required:"true"`
	RedditClientSecret string `envconfig:"REDDIT_CLIENT_SECRET" required:"true"`

	GoogleClientId     string `envconfig:"GOOGLE_CLIENT_ID"     required:"true"`
	GoogleClientSecret string `envconfig:"GOOGLE_CLIENT_SECRET" required:"true"`

	GitHubClientId     string `envconfig:"GITHUB_CLIENT_ID"     required:"true"`
	GitHubClientSecret string `envconfig:"GITHUB_CLIENT_SECRET" required:"true"`

	MongoURL string `envconfig:"MONGO_URL" default:"localhost"`

	SteemdDisabled           bool   `envconfig:"STEEMD_DISABLED"`
	SteemdRPCEndpointAddress string `envconfig:"STEEMD_RPC_ENDPOINT_ADDRESS" default:"ws://localhost:8090"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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