Documentation ¶
Index ¶
Constants ¶
View Source
const ( TWITCH_API_CHAT_PROPERTIES_ENDPOINT = "https://api.twitch.tv/api/channels/%s/chat_properties" TWITCH_API_TOP_STREAM_ENDPOINT = "https://api.twitch.tv/kraken/streams?limit=%d&offset=%d&broadcaster_language=en" // TODO: Make language configurable )
View Source
const ( IRC_PASS_STRING = "PASS %s" IRC_USER_STRING = "NICK %s" IRC_JOIN_STRING = "JOIN #%s" IRC_PART_STRING = "PART #%s" TWITCH_CHAT_SERVER_ADDRESS = "irc.twitch.tv:6667" TIME_TO_WAIT_FOR_CONNECTION = time.Second * 5 TIME_BETWEEN_CHANNEL_SCRAPES = time.Minute * 20 CHANNELS_TO_GET_PER_SCRAPE = 1000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { TwitchUsername string `json:"twitch_username"` TwitchOAuthToken string `json:"twitch_oauth_token"` }
var Configuration *Config
type ElasticBroker ¶
type ElasticBroker struct {
// contains filtered or unexported fields
}
type Locator ¶
type Locator struct { }
Locate the best chat server to connect to for a given twitch channel
func (*Locator) GetIrcServerAddress ¶
func (*Locator) GetTopNChannels ¶
type Scraper ¶
func NewScraper ¶
func NewScraper() *Scraper
func (*Scraper) StartMessages ¶
func (s *Scraper) StartMessages()
Click to show internal directories.
Click to hide internal directories.