action

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EmailQueueName = "email_messages"

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Execute() ([]byte, error)
}

type EmailAction

type EmailAction struct {
	Data    *alerting.Email
	Subject string
	Body    string
}

func (*EmailAction) Execute

func (act *EmailAction) Execute() ([]byte, error)

type WebhookAction

type WebhookAction struct {
	Data    *alerting.CustomWebhook
	Message string
}

func (*WebhookAction) Execute

func (act *WebhookAction) Execute() ([]byte, error)

Jump to

Keyboard shortcuts

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