Discover Packages
github.com/opencars/bot
pkg
config
package
Version:
v0.0.46
Opens a new window with list of versions in this module.
Published: Oct 2, 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 AutoRia struct {
Period Duration `yaml:"period"`
ApiKey string `yaml:"api_key"`
}
type Config struct {
AutoRia *AutoRia `yaml:"autoria"`
Store *Store `yaml:"database"`
}
New reads application configuration from specified file path.
UnmarshalText implements encoding.TextUnmarshaler{} for Duration type.
type Store struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"username"`
Password string `yaml:"password"`
Database string `yaml:"database"`
SSLMode string `yaml:"ssl_mode"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.