Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SenderColors = map[string]string{
"cnn": "#B60002",
"foxnews.com": "#234E6C",
"foxbusiness.com": "#343434",
"nbcnews.com": "#343434",
"nbc": "#343434",
"nytimes.com": "#1A1A1A",
"the new york times": "#1A1A1A",
"the washington post": "#222",
"wsj.com": "#444242",
"the wall street journal.": "#444242",
"the wall street journal": "#444242",
"politico": "#256396",
"los angeles times": "#000",
"cbs": "#313943",
"abc": "#1b6295",
"usatoday.com": "#1877B6",
"usatoday": "#1877B6",
"usa today": "#1877B6",
"yahoo": "#7B0099",
"ft": "#FFF1E0",
"bbc": "#c00000",
"npr": "#5f82be",
"time": "#e90606",
"bloomberg.com": "#110c09",
}
Functions ¶
func NewService ¶
Types ¶
type AlertBarker ¶
type AlertBarker interface {
Bark(alert newshound.NewsAlertLite) error
}
type AlertBarkerFunc ¶
type AlertBarkerFunc func(alert newshound.NewsAlertLite) error
func (AlertBarkerFunc) Bark ¶
func (a AlertBarkerFunc) Bark(alert newshound.NewsAlertLite) error
type EventBarker ¶
type EventBarkerFunc ¶
type SlackAlertBarker ¶
type SlackAlertBarker struct {
// contains filtered or unexported fields
}
func NewSlackAlertBarker ¶
func NewSlackAlertBarker(cfg SlackConfig) *SlackAlertBarker
func (*SlackAlertBarker) Bark ¶
func (s *SlackAlertBarker) Bark(alert newshound.NewsAlertLite) error
type SlackConfig ¶
type SlackEventBarker ¶
type SlackEventBarker struct {
// contains filtered or unexported fields
}
func NewSlackEventBarker ¶
func NewSlackEventBarker(cfg SlackConfig) *SlackEventBarker
type TwitterAlertBarker ¶
type TwitterAlertBarker struct {
// contains filtered or unexported fields
}
func NewTwitterAlertBarker ¶
func NewTwitterAlertBarker(consumerKey, consumerSecret, token, secret string) *TwitterAlertBarker
func (*TwitterAlertBarker) Bark ¶
func (s *TwitterAlertBarker) Bark(alert newshound.NewsAlertLite) error
type TwitterEventBarker ¶
type TwitterEventBarker struct {
// contains filtered or unexported fields
}
func NewTwitterEventBarker ¶
func NewTwitterEventBarker(token, secret string) *TwitterEventBarker
Click to show internal directories.
Click to hide internal directories.