Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSlackService ¶ added in v0.0.5
type SlackAPI ¶ added in v0.0.3
type SlackAPI interface {
PostWebhook(url string, msg *api.WebhookMessage) error
}
type SlackAnnouncer ¶
type SlackAnnouncer struct { WebhookURL string Enabled bool IconUrl string Username string Service SlackAPI }
func NewSlackAnnouncer ¶
func NewSlackAnnouncer(url, username, iconUrl string, service SlackAPI) *SlackAnnouncer
func (*SlackAnnouncer) IsEnabled ¶
func (sa *SlackAnnouncer) IsEnabled() bool
func (*SlackAnnouncer) Notify ¶
func (sa *SlackAnnouncer) Notify(payload *announce.AnnouncerPayload) error
type SlackService ¶ added in v0.0.3
type SlackService struct{}
func (*SlackService) PostWebhook ¶ added in v0.0.3
func (r *SlackService) PostWebhook(url string, msg *api.WebhookMessage) error
Click to show internal directories.
Click to hide internal directories.