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 )
Click to show internal directories.
Click to hide internal directories.