Documentation ¶
Overview ¶
Package notify provides notification functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NopService = &Service{}
NopService is do-nothing notifier, without destinations
Functions ¶
This section is empty.
Types ¶
type Destination ¶
Destination defines interface for a given destination service, like telegram, email and so on
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service delivers notifications to multiple destinations
func NewService ¶
func NewService(dataService Store, size int, destinations ...Destination) *Service
NewService makes notification service routing comments to all destinations.
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
Telegram implements notify.Destination for telegram
func NewTelegram ¶
func NewTelegram(token string, channelID string, timeout time.Duration, api string) (*Telegram, error)
NewTelegram makes telegram bot for notifications
Click to show internal directories.
Click to hide internal directories.