Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailToLoadConfig = errors.System(nil, "fail to load config", "CONF:001") ErrFailEnsureConfig = errors.System(nil, "fail to ensure config", "CONF:002") ConfigFileWasCreated = errors.Business("a new config file was created (%s)", "CONF:003") ErrMissingTelegramToken = errors.System(nil, "missing telegram token", "CONF:004") ErrMissingYoutubeToken = errors.System(nil, "missing youtube token", "CONF:005") )
Functions ¶
func VersionVerbose ¶
func VersionVerbose() string
Types ¶
type AppConfig ¶
type AppConfig struct { Debug bool `fig:"-" yaml:"-"` Store Store `fig:"store" yaml:"store"` Timezone string `fig:"timezone" yaml:"timezone"` Description string `fig:"description" yaml:"description"` Calendar string `fig:"calendar" yaml:"calendar"` Logger Logger `fig:"logger" yaml:"logger"` Telegram Telegram `fig:"telegram" yaml:"telegram"` Location Location `fig:"location" yaml:"location"` Youtube YouTube `fig:"youtube" yaml:"youtube"` Pix Pix `fig:"pix" yaml:"pix"` Cron Cron `fig:"cron" yaml:"cron"` }
type Channel ¶
type Location ¶
type Location struct { Title string `fig:"title" yaml:"title"` Address string `fig:"address" yaml:"address"` Latitude float32 `fig:"latitude" yaml:"latitude"` Longitude float32 `fig:"longitude" yaml:"longitude"` FoursquareID string `fig:"foursquare_id" yaml:"foursquare_id"` FoursquareType string `fig:"foursquare_type" yaml:"foursquare_type"` GooglePlaceID string `fig:"google_place_id" yaml:"google_place_id"` GooglePlaceType string `fig:"google_place_type" yaml:"google_place_type"` }
type Logger ¶
type Store ¶
type Store struct {
Path string `fig:"path" yaml:"path" default:"/peristera.d/store"`
}
Click to show internal directories.
Click to hide internal directories.