notifier

package
v0.0.0-...-4c8f420 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotifier

type MockNotifier struct {
	mock.Mock
}

func (*MockNotifier) SendNotification

func (n *MockNotifier) SendNotification(message string) error

SendNotification sends a notification to Slack.

type Notifier

type Notifier interface {
	SendNotification(message string) error
}

Notifier is an interface for sending notifications.

type SlackNotifier

type SlackNotifier struct {
	// contains filtered or unexported fields
}

func NewSlackNotifier

func NewSlackNotifier(token string, channelID string) *SlackNotifier

NewSlackNotifier creates a new SlackNotifier.

func (*SlackNotifier) SendNotification

func (n *SlackNotifier) SendNotification(message string) error

SendNotification sends a notification to Slack.

Jump to

Keyboard shortcuts

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