notification

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationService

type NotificationService interface {
	SendNotification(message string) error
}

func NewNullNotificationService

func NewNullNotificationService() NotificationService

func NewSlackNotificationService

func NewSlackNotificationService(slackToken string, channel string) NotificationService

type NullNotificationService

type NullNotificationService struct {
}

func (*NullNotificationService) SendNotification

func (s *NullNotificationService) SendNotification(message string) error

type SlackMessage

type SlackMessage struct {
	Channel string `json:"channel"`
	Text    string `json:"text"`
}

type SlackNotificationService

type SlackNotificationService struct {
	SlackToken string
	Channel    string
}

func (*SlackNotificationService) SendNotification

func (s *SlackNotificationService) SendNotification(message string) error

Jump to

Keyboard shortcuts

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