Discover Packages
github.com/opencars/auth
pkg
config
package
Version:
v0.0.12
Opens a new window with list of versions in this module.
Published: Aug 11, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Database struct {
Host string `toml:"host"`
Port int `toml:"port"`
User string `toml:"username"`
Password string `toml:"password"`
Name string `toml:"database"`
}
Database contains configuration details for database.
type EventAPI struct {
Enabled bool `toml:"enabled"`
Host string `toml:"host"`
Port int `toml:"port"`
}
type Settings struct {
DB Database `toml:"database"`
EventAPI EventAPI `toml:"event_api"`
}
Settings is decoded configuration file.
New reads application configuration from specified file path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.