Discover Packages
github.com/openrfsense/backend
config
package
Version:
v0.0.0-...-e650048
Opens a new window with list of versions in this module.
Published: Mar 4, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Loads a YAML configuration file from the given path and overrides
it with environment variables. If the file cannot be loaded or
parsed as YAML, an error is returned. Requires a default config of any kind,
will try to serialize the configuration to outConfig if present (needs to
be a pointer to a struct).
type Backend struct {
Metrics bool `yaml:"metrics"`
Port int `yaml:"port"`
Storage string `yaml:"storage"`
Users map[string ]string `yaml:"users"`
}
type Collector struct {
Port int `yaml:"port"`
}
type NATS struct {
Protocol string `yaml:"protocol"`
Host string `yaml:"host"`
Port int `yaml:"port"`
Token string `yaml:"token"`
}
type Postgres struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
DatabaseName string `yaml:"dbname"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Params []string `yaml:"params"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.