outputchannels

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

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 MSTeamsWebhookSectionFact

type MSTeamsWebhookSectionFact struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type NotificationSenderService

type NotificationSenderService interface {
	SendNotification(ctx context.Context, event cloudevents.Event) error
}

func NewSMTPOutputService

func NewSMTPOutputService(config models.EmailConfig, smtpServer config.SMTPServer) 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

Jump to

Keyboard shortcuts

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