Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Databases map[string]DatabaseConfig `yaml:"databases"`
}
Config is the Go representation of the yaml config file.
type DatabaseConfig ¶
Credentials is the Go representation of the credentials section in the yaml config file.
type SafeConfig ¶
SafeConfig wraps Config for concurrency-safe operations.
func (*SafeConfig) DatabaseConfigForTarget ¶
func (sc *SafeConfig) DatabaseConfigForTarget(target string) (DatabaseConfig, error)
CredentialsForTarget returns the Credentials for a given target, or the default. It is concurrency-safe.
func (*SafeConfig) ReloadConfig ¶
func (sc *SafeConfig) ReloadConfig(configFile string) error
Click to show internal directories.
Click to hide internal directories.