config

package
v0.0.0-...-e550578 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 7 Imported by: 6

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

DB connection instance

func (*DatabaseConfig) Connect

func (db *DatabaseConfig) Connect()

Connect establishes DB connection and runs an SQL-query

type SubServiceConf

type SubServiceConf struct {
	Host     string
	Port     int
	HubURL   string
	TopicURL string
}

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

type TelegramConfig struct {
	APIKey string
	APIUrl string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL