event

package
v0.0.0-...-b60b6a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownEvent    = goerr.New("unknown event type")
	ErrUnexpectedEvent = goerr.New("unexpected event type")
)

Event errors

Functions

This section is empty.

Types

type Message

type Message struct {
	Name Type        `json:"name"`
	Data interface{} `json:"data,omitempty"`
}

func (*Message) UnmarshalJSON

func (m *Message) UnmarshalJSON(data []byte) error

type Type

type Type string

Type is an event ID type

const (
	StartMonitorDone   Type = "event.monitor.start.done"
	StartMonitorFailed Type = "event.monitor.start.failed"
	StopMonitorDone    Type = "event.monitor.stop.done"
	ShutdownSensorDone Type = "event.sensor.shutdown.done"
	Error              Type = "event.error"
)

Supported events

Jump to

Keyboard shortcuts

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