Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MSTeamsWebhookMsg ¶
type MSTeamsWebhookMsg struct { Type string `json:"@type"` Context string `json:"@context"` Summary string `json:"summary"` ThemeColor string `json:"themeColor"` Sections []MSTeamsWebhookSection }
type MSTeamsWebhookOutputService ¶
type MSTeamsWebhookOutputService struct {
// contains filtered or unexported fields
}
func (*MSTeamsWebhookOutputService) SendNotification ¶
func (s *MSTeamsWebhookOutputService) SendNotification(ctx context.Context, event cloudevents.Event) error
type MSTeamsWebhookSection ¶
type MSTeamsWebhookSection struct { ActivityTitle string `json:"activityTitle"` ActivityText string `json:"activityText"` ActivityImage string `json:"activityImage"` Facts []MSTeamsWebhookSectionFact Markdown bool `json:"markdown"` }
type NotificationSenderService ¶
type NotificationSenderService interface {
SendNotification(ctx context.Context, event cloudevents.Event) error
}
func NewMSTeamsOutputService ¶
func NewMSTeamsOutputService(config models.MSTeamsChannelConfig) NotificationSenderService
func NewSMTPOutputService ¶
func NewSMTPOutputService(config models.EmailConfig, smtpServer config.SMTPServer) NotificationSenderService
func NewWebhookOutputService ¶
func NewWebhookOutputService(config models.WebhookChannelConfig) NotificationSenderService
type SMTPOutputService ¶
type SMTPOutputService struct {
// contains filtered or unexported fields
}
func (*SMTPOutputService) SendNotification ¶
func (s *SMTPOutputService) SendNotification(ctx context.Context, event cloudevents.Event) error
type WebhookOutputService ¶
type WebhookOutputService struct {
// contains filtered or unexported fields
}
func (*WebhookOutputService) SendNotification ¶
func (s *WebhookOutputService) SendNotification(ctx context.Context, event cloudevents.Event) error
Click to show internal directories.
Click to hide internal directories.