event

package
v0.0.0-...-1bc8c79 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StateSensorTypeCreating    = "sensor.type.creating"
	StateCmdStartMonCmdWaiting = "cmd.monitor.start.waiting"
	StateEnvPreparing          = "env.preparing"
	StateMonCreating           = "monitor.creating"
	StateMonStarting           = "monitor.starting"
)
View Source
const (
	ComSensorConstructor = "sensor.constructor"
	ComSensorCmdServer   = "sensor.cmd.server"
	ComMonitorRunner     = "monitor.runner"
)
View Source
const (
	CtxSensorType = "sensor.type"
	CtxCmdType    = "cmd.type"
)

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 StartMonitorFailedData

type StartMonitorFailedData struct {
	Component string            `json:"component,omitempty"`
	State     string            `json:"state,omitempty"`
	Context   map[string]string `json:"context,omitempty"`
	Errors    []string          `json:"errors,omitempty"`
}

StartMonitorFailed contains additional context for the failure

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