Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶ added in v1.4.0
type Payload struct { Username string `json:"username"` AvatarURL string `json:"avatar_url"` Embeds []Embed `json:"embeds"` }
Payload is the json sent to the Discord webhook endpoint.
type Provider ¶
type Provider struct { WebhookURL string `yaml:"webhookURL"` AvatarURL string `yaml:"avatarURL"` 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.