notification

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Type     NotificationType
	Message  string
	Metadata interface{}
}

type NotificationChannel

type NotificationChannel chan Notification

func NewChannel

func NewChannel() NotificationChannel

type NotificationSink

type NotificationSink interface {
	Notify(n Notification)
}

type NotificationType

type NotificationType int
const (
	NotificationTypeSystemError NotificationType = iota
	NotificationTypeSoftRestartRequested
	NotificationTypeHardRestartRequested
	NotificationTypeSystemShutdown
	NotificationTypeStartup
	NotificationTypeHardRestart
	NotificationTypeSoftRestart
	NotificationTypeShutdown
	NotificationTypeLogEvent
)

Jump to

Keyboard shortcuts

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