Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SubClient *gohubbub.Client
SubClient - YT Subscription Client
Functions ¶
This section is empty.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct { sqlite.ConnectionURL Connection sqlbuilder.Database }
DatabaseConfig contains all DB-connection creds/options
var DB DatabaseConfig
DB connection instance
func (*DatabaseConfig) Connect ¶
func (db *DatabaseConfig) Connect()
Connect establishes DB connection and runs an SQL-query
type SubServiceConf ¶
SubServiceConf holds a config ro subscription service
var SubConf SubServiceConf
SubConf - Subscribe service configs and Helpers
func (*SubServiceConf) TopicURLFor ¶
func (sc *SubServiceConf) TopicURLFor(channelID string) (url string, err error)
TopicURLFor Generates Subscription URL for a specific channel
type TelegramConfig ¶
TelegramConfig contains all Telegram-related configuration
var Telegram TelegramConfig
Telegram is an instance of TelegramConfig
func (*TelegramConfig) FullURL ¶
func (t *TelegramConfig) FullURL(uri string) string
FullURL Get APi url for specified action
type YouTubeConfig ¶
type YouTubeConfig struct {
DeveloperKey string
}
YouTubeConfig holds configuration for YouTube API
var YT YouTubeConfig
YT is a YouTube config holder
Click to show internal directories.
Click to hide internal directories.