eventdistributer

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CanvasUpdatedEvent = "canvas_updated"
	CanvasDeletedEvent = "canvas_deleted"
)
View Source
const (
	ExecutionCreatedEvent  = "execution_created"
	ExecutionFinishedEvent = "execution_finished"
	ExecutionStartedEvent  = "execution_started"
)
View Source
const (
	QueueItemCreatedEvent  = "queue_item_created"
	QueueItemConsumedEvent = "queue_item_consumed"
)

Variables

This section is empty.

Functions

func HandleCanvasDeleted added in v0.10.0

func HandleCanvasDeleted(messageBody []byte, wsHub *ws.Hub) error

func HandleCanvasEventCreated added in v0.6.0

func HandleCanvasEventCreated(messageBody []byte, wsHub *ws.Hub) error

func HandleCanvasExecution added in v0.6.0

func HandleCanvasExecution(messageBody []byte, wsHub *ws.Hub) error

func HandleCanvasUpdated added in v0.10.0

func HandleCanvasUpdated(messageBody []byte, wsHub *ws.Hub) error

func HandleQueueItemConsumed added in v0.6.0

func HandleQueueItemConsumed(messageBody []byte, wsHub *ws.Hub) error

func HandleQueueItemCreated added in v0.6.0

func HandleQueueItemCreated(messageBody []byte, wsHub *ws.Hub) error

Types

type CanvasEventWebsocketEvent added in v0.6.0

type CanvasEventWebsocketEvent struct {
	Event   string          `json:"event"`
	Payload json.RawMessage `json:"payload"`
}

type CanvasStatePayload added in v0.10.0

type CanvasStatePayload struct {
	ID string `json:"id"`
}

type CanvasStateWebsocketEvent added in v0.10.0

type CanvasStateWebsocketEvent struct {
	Event   string             `json:"event"`
	Payload CanvasStatePayload `json:"payload"`
}

type ExecutionStateWebsocketEvent

type ExecutionStateWebsocketEvent struct {
	Event   string          `json:"event"`
	Payload json.RawMessage `json:"payload"`
}

type QueueItemWebsocketEvent

type QueueItemWebsocketEvent struct {
	Event   string          `json:"event"`
	Payload json.RawMessage `json:"payload"`
}

Jump to

Keyboard shortcuts

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