Discover Packages
github.com/opencars/operations
pkg
config
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Jan 19, 2020
License: MIT
Opens a new window with license information.
Imports: 2
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.
Address return API address in "host:port" format.
type Settings struct {
DB Database `toml:"database"`
Worker Worker `toml:"worker"`
}
Settings is decoded configuration file.
New reads application configuration from specified file path.
type Worker struct {
PackageID string `toml:"package_id"`
}
Worker contains settings for data processing by cmd/worker.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.