package
Version:
v0.0.0-...-09a68ad
Opens a new window with list of versions in this module.
Published: Nov 9, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AQICN struct {
City string `json:"city" default:"ho-chi-minh-city"`
Token string `json:"token"`
}
type Bot struct {
Secret string `json:"secret" required:"true"`
Token string `json:"token" required:"true"`
Translation Translation `json:"translation"`
Weather Weather `json:"weather"`
AQI AQICN `json:"aqi"`
Joke Joke `json:"joke"`
}
type Config struct {
Port string `json:"port" required:"true"`
LogLevel string `json:"log_level" default:"info"`
Bot Bot `json:"bot"`
Database Database `json:"database"`
}
type Database struct {
Type string `json:"type" required:"true" default:"mongodb"`
MongoDB MongoDB `json:"mongo_db"`
}
type Joke struct {
Folder string `json:"folder" default:"_misc"`
}
type MongoDB struct {
URI string `json:"uri" envconfig:"URI"`
}
type OpenWeatherMap struct {
City string `json:"city"`
Token string `json:"token"`
}
type Translation struct {
SourceLang string `json:"source_language" default:"auto"`
TargetLang string `json:"target_language" default:"en"`
}
type Weather struct {
Type string `json:"type" default:"openweathermap"`
OpenWeather OpenWeatherMap `json:"open_weather"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.