Documentation
¶
Overview ¶
Package config is the package that handles application config
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInfo = models.APIInfo{Name: "Reflow", Version: "v0.1", Stream: "master"}
DefaultInfo is the default APIInfo for reflow.
Functions ¶
func LoadConfig ¶
func LoadConfig(configFile string)
LoadConfig takes a config file at the specified path and loads it, or creates configFile if it doesn't exist
func LoadDefaultConfig ¶
func LoadDefaultConfig()
LoadDefaultConfig loads the default configuration from disk and sets Conf
Types ¶
type Config ¶
type Config struct {
Database DatabaseConfig
Server ServerConfig
Repo RepoConfig
}
var Conf Config
Conf the struct with the config in (duh)
type DatabaseConfig ¶
type RepoConfig ¶
type RepoConfig struct {
RepoURL string
}
Click to show internal directories.
Click to hide internal directories.