Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface {
SendMessage(ctx context.Context, message string, enableNotification bool) error
}
func NewDiscordChannel ¶
func NewTelegramChannel ¶
type DefaultService ¶
type DefaultService struct {
// contains filtered or unexported fields
}
func (*DefaultService) SendError ¶
func (d *DefaultService) SendError(ctx context.Context, err error) error
func (*DefaultService) SendResults ¶
type DiscordChannel ¶
type DiscordChannel struct {
// contains filtered or unexported fields
}
func (*DiscordChannel) SendMessage ¶
type NotificationInfo ¶
type Service ¶
type Service interface { SendResults(ctx context.Context, results []common.Job) error SendError(ctx context.Context, err error) error }
func NewDefaultService ¶
func NewDefaultService(cfg configuration.NotificationConfiguration) (Service, error)
type TelegramChannel ¶
type TelegramChannel struct {
// contains filtered or unexported fields
}
func (TelegramChannel) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.