notifications

package
v0.0.0-...-f2a416a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandConfig

type CommandConfig struct {
	Uid     int
	Gid     int
	Command []string
}

type CommandRunner

type CommandRunner struct {
	// contains filtered or unexported fields
}

func NewCommandRunner

func NewCommandRunner(config CommandConfig) *CommandRunner

func (*CommandRunner) Notify

func (runner *CommandRunner) Notify(results []tools.ToolResult) error

type Notification

type Notification struct {
	Type   string
	Runner NotificationRunner
}

func (*Notification) Notify

func (noitification *Notification) Notify(results []tools.ToolResult) error

type NotificationConfig

type NotificationConfig struct {
	Type   string
	Config json.RawMessage
}

type NotificationRunner

type NotificationRunner interface {
	Notify(results []tools.ToolResult) error
}

func GetNotificationRunner

func GetNotificationRunner(typename string, config json.RawMessage) NotificationRunner

Jump to

Keyboard shortcuts

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