config

package
v0.0.0-...-6cd4603 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: GPL-3.0 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 {
	Server   *server.Config
	Slack    *Slack
	GCP      *GCP
	LogLevel string `envconfig:"LOG_LEVEL"`
	Timezone string `envconfig:"BOT_TIMEZONE"`
}

func LoadConfig

func LoadConfig() *Config

type GCP

type GCP struct {
	ProjectID string `envconfig:"BOT_GCP_PROJECT_ID"`
	LogName   string `envconfig:"BOT_GCP_LOG_NAME"`
}

type Slack

type Slack struct {
	WebhookURL string `envconfig:"BOT_SLACK_WEBHOOK_URL"`
}

Jump to

Keyboard shortcuts

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