Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Username string `json:"username"` IconURL string `json:"icon_url"` Text string `json:"text"` }
Content is sent as json to the Rocket.Chat webhook endpoint.
type Provider ¶
type Provider struct { WebhookURL string `yaml:"webhookURL"` IconURL string `yaml:"iconURL"` IsEnabled bool `yaml:"enabled"` }
Provider is an implementation of the `go-aws-news/providers` Provider interface.
func (*Provider) Notify ¶
func (p *Provider) Notify(news news.Announcements)
Notify is the function executed to POST to a provider's webhook url.
Click to show internal directories.
Click to hide internal directories.