notifications

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderPayload

func RenderPayload(message *schema.Template, event Event) ([]byte, error)

Types

type Event

type Event interface {
	Form() schema.Form
	Error() error
	Result() map[string]any
}

type Notification

type Notification interface {
	Dispatch(ctx context.Context, event Event) error
}

type NotificationFunc

type NotificationFunc func(ctx context.Context, event Event) error

func (NotificationFunc) Dispatch

func (nf NotificationFunc) Dispatch(ctx context.Context, event Event) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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