Documentation ¶
Index ¶
- Variables
- func BuildDate() string
- func Commit() string
- func Hostname() string
- func Version() string
- func VersionVerbose() string
- type AppConfig
- type Channel
- type CommandMapper
- type Cron
- type Location
- type Logger
- type MenuMapper
- type Pix
- type QRCode
- type SetOfCommand
- type Store
- type Telegram
- type TelegramCommands
- type YouTube
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"` Covers sources.Sources `fig:"covers" yaml:"covers"` }
type Channel ¶
type CommandMapper ¶
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 MenuMapper ¶
type SetOfCommand ¶
type Store ¶
type Store struct {
Path string `fig:"path" yaml:"path" default:"/peristera.d/store"`
}
type Telegram ¶
type Telegram struct { Token string `fig:"token" yaml:"token"` Commands TelegramCommands `fig:"commands" yaml:"commands"` Broadcast []int64 `fig:"broadcast" yaml:"broadcast"` Admins []int64 `fig:"admins" yaml:"admins"` Roots []int64 `fig:"roots" yaml:"roots"` }
type TelegramCommands ¶
type TelegramCommands struct { SetOf []SetOfCommand `fig:"set_of" yaml:"set_of"` Mappers []CommandMapper `fig:"mappers" yaml:"mappers"` Menu []MenuMapper `fig:"menu" yaml:"menu"` }
Click to show internal directories.
Click to hide internal directories.