config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 6 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 {
	Environment string `envconfig:"default=development"`
	Webhook     string `json:"web_hook" envconfig:"-"`
	// TODO: to support multiple channels, we might want to change this to map[string]string but not for now...
	Repos        map[string]bool   `json:"repos" envconfig:"-"`
	Countdown    map[string]string `json:"countdown" envconfig:"-"`
	ChannelID    string            `json:"channel_id" envconfig:"-"`
	Organization string            `json:"organization" envconfig:"-"`
}

func Load

func Load(env string) (Config, error)

Jump to

Keyboard shortcuts

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