slack

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 MockSlackService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL