Documentation ¶
Overview ¶
notification.go
service.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationService ¶
type NotificationService interface {
CompareContainersAndNotify(initialContainers, currentContainers []types.Container) error
}
NotificationService defines the methods for handling notifications.
func NewNotificationService ¶
func NewNotificationService(containerService container.ContainerService, webhookService WebhookService) NotificationService
type NotificationServiceImpl ¶
type NotificationServiceImpl struct {
// contains filtered or unexported fields
}
func (*NotificationServiceImpl) CompareContainersAndNotify ¶
func (ns *NotificationServiceImpl) CompareContainersAndNotify(initialContainers, currentContainers []types.Container) error
type WebhookClient ¶
type WebhookClient struct {
// contains filtered or unexported fields
}
func NewWebhookClient ¶
func NewWebhookClient(googleChatURL, discordURL string) *WebhookClient
func (*WebhookClient) GetDiscordWebhookURL ¶
func (wc *WebhookClient) GetDiscordWebhookURL() string
func (*WebhookClient) GetGoogleChatWebhookURL ¶
func (wc *WebhookClient) GetGoogleChatWebhookURL() string
func (*WebhookClient) SendWebhook ¶
func (wc *WebhookClient) SendWebhook(webhookURL, payload string) error
Click to show internal directories.
Click to hide internal directories.