Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { // Get an optional setting by name, with a default value to return if it does // exist. Optional(key string, defaultValue string) string // Get a required setting by name. Required(key string) (string, error) }
Interface for fetching configuration settings
type DefaultConfig ¶
type DefaultConfig struct { }
The default configuration implementation simply fetches a setting from an environment variable.
type FakeConfig ¶
type FakeConfig struct {
// contains filtered or unexported fields
}
func NewFakeConfig ¶
func NewFakeConfig() *FakeConfig
func (*FakeConfig) Set ¶
func (t *FakeConfig) Set(key string, value string)
Click to show internal directories.
Click to hide internal directories.