Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Routes map[string]*Route `yaml:"routes"` Reset string `yaml:"reset"` Status string `yaml:"status"` Cert string `yaml:"cert"` CertPath string `yaml:"cert_path"` Key string `yaml:"key"` KeyPath string `yaml:"key_path"` CA string `yaml:"ca"` CAPath string `yaml:"ca_path"` // contains filtered or unexported fields }
File represents all the configurable options of Avenues
func ParseFromFile ¶
ParseFromFile reads an Avenues config file from the file specified in the environment or from the default file location if no environment is specified. A File with the populated values is returned and any errors encountered while trying to read the file.
Click to show internal directories.
Click to hide internal directories.