Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(cfg *ServerConfig) error
Types ¶
type DatabaseConfig ¶
type OauthConfig ¶
type ServerConfig ¶
type ServerConfig struct { Host string `yaml:"host"` Port int `yaml:"port"` Oauth OauthConfig `yaml:"oauth"` DB DatabaseConfig `yaml:"database"` }
func LoadEnvironment ¶
func LoadEnvironment(cfg *ServerConfig) *ServerConfig
func LoadFile ¶
func LoadFile(configPath string) (*ServerConfig, error)
Load loads the configuration from the given path If the path is empty, it will load the default configuration file from /etc/hpcadmin-server/config.yaml
Click to show internal directories.
Click to hide internal directories.