Documentation
¶
Index ¶
- type DiscordNotificationProvider
- type EmailNotificationProvider
- type GenericWebhookProvider
- type NotificationSettings
- func (ns NotificationSettings) SendDiscord(ctx context.Context, title, message string, wf storage.Workflow) error
- func (ns NotificationSettings) SendEmail(ctx context.Context, title, message string, wf storage.Workflow) error
- func (ns NotificationSettings) SendGenericWebhook(ctx context.Context, title, message string, wf storage.Workflow) error
- func (ns NotificationSettings) SendSlack(ctx context.Context, title, message string, wf storage.Workflow) error
- func (ns NotificationSettings) SendTelegram(ctx context.Context, title, message string, wf storage.Workflow) error
- func (ns NotificationSettings) Test(ctx context.Context) []TestResult
- type Provider
- type Service
- type SlackNotificationProvider
- type TelegramNotificationProvider
- type TestResult
- type UINotificationProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordNotificationProvider ¶
type DiscordNotificationProvider struct {
// contains filtered or unexported fields
}
func NewDiscordNotificationProvider ¶
func NewDiscordNotificationProvider(s storage.Storage) *DiscordNotificationProvider
func (*DiscordNotificationProvider) SetStorage ¶
func (p *DiscordNotificationProvider) SetStorage(s storage.Storage)
func (*DiscordNotificationProvider) Type ¶
func (p *DiscordNotificationProvider) Type() string
type EmailNotificationProvider ¶
type EmailNotificationProvider struct {
// contains filtered or unexported fields
}
func NewEmailNotificationProvider ¶
func NewEmailNotificationProvider(s storage.Storage) *EmailNotificationProvider
func (*EmailNotificationProvider) SetStorage ¶
func (p *EmailNotificationProvider) SetStorage(s storage.Storage)
func (*EmailNotificationProvider) Type ¶
func (p *EmailNotificationProvider) Type() string
type GenericWebhookProvider ¶
type GenericWebhookProvider struct {
// contains filtered or unexported fields
}
func NewGenericWebhookProvider ¶
func NewGenericWebhookProvider(s storage.Storage) *GenericWebhookProvider
func (*GenericWebhookProvider) SetStorage ¶
func (p *GenericWebhookProvider) SetStorage(s storage.Storage)
func (*GenericWebhookProvider) Type ¶
func (p *GenericWebhookProvider) Type() string
type NotificationSettings ¶
type NotificationSettings struct {
SMTPHost string `json:"smtp_host"`
SMTPPort int `json:"smtp_port"`
SMTPUser string `json:"smtp_user"`
SMTPPassword string `json:"smtp_password"`
SMTPFrom string `json:"smtp_from"`
SMTPSSL bool `json:"smtp_ssl"`
DefaultEmail string `json:"default_email"`
TelegramToken string `json:"telegram_token"`
TelegramChatID string `json:"telegram_chat_id"`
SlackWebhook string `json:"slack_webhook"`
DiscordWebhook string `json:"discord_webhook"`
WebhookURL string `json:"webhook_url"`
BaseURL string `json:"base_url"`
}
func (NotificationSettings) SendDiscord ¶
func (NotificationSettings) SendGenericWebhook ¶
func (NotificationSettings) SendTelegram ¶
func (NotificationSettings) Test ¶
func (ns NotificationSettings) Test(ctx context.Context) []TestResult
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddProvider ¶
func (*Service) SetStorage ¶
type SlackNotificationProvider ¶
type SlackNotificationProvider struct {
// contains filtered or unexported fields
}
func NewSlackNotificationProvider ¶
func NewSlackNotificationProvider(s storage.Storage) *SlackNotificationProvider
func (*SlackNotificationProvider) SetStorage ¶
func (p *SlackNotificationProvider) SetStorage(s storage.Storage)
func (*SlackNotificationProvider) Type ¶
func (p *SlackNotificationProvider) Type() string
type TelegramNotificationProvider ¶
type TelegramNotificationProvider struct {
// contains filtered or unexported fields
}
func NewTelegramNotificationProvider ¶
func NewTelegramNotificationProvider(s storage.Storage) *TelegramNotificationProvider
func (*TelegramNotificationProvider) SetStorage ¶
func (p *TelegramNotificationProvider) SetStorage(s storage.Storage)
func (*TelegramNotificationProvider) Type ¶
func (p *TelegramNotificationProvider) Type() string
type TestResult ¶
type UINotificationProvider ¶
type UINotificationProvider struct {
// contains filtered or unexported fields
}
func NewUINotificationProvider ¶
func NewUINotificationProvider(s storage.Storage) *UINotificationProvider
func (*UINotificationProvider) SetStorage ¶
func (p *UINotificationProvider) SetStorage(s storage.Storage)
func (*UINotificationProvider) Type ¶
func (p *UINotificationProvider) Type() string
Click to show internal directories.
Click to hide internal directories.