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