Documentation
¶
Index ¶
- Constants
- func AgentSessionWebsocketTopic(sessionID string) string
- func HandleAgentSessionEvent(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasDeleted(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasEventCreated(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasExecution(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasRun(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasUpdated(messageBody []byte, wsHub *ws.Hub) error
- func HandleCanvasVersionUpdated(messageBody []byte, wsHub *ws.Hub) error
- func HandleQueueItemConsumed(messageBody []byte, wsHub *ws.Hub) error
- func HandleQueueItemCreated(messageBody []byte, wsHub *ws.Hub) error
- type CanvasEventWebsocketEvent
- type CanvasStatePayload
- type CanvasStateWebsocketEvent
- type ExecutionStateWebsocketEvent
- type QueueItemWebsocketEvent
- type RunStateWebsocketEvent
Constants ¶
View Source
const ( CanvasUpdatedEvent = "canvas_updated" CanvasVersionUpdatedEvent = "canvas_version_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" )
View Source
const ( RunStartedEvent = "run_started" RunFinishedEvent = "run_finished" )
Variables ¶
This section is empty.
Functions ¶
func AgentSessionWebsocketTopic ¶ added in v0.21.0
AgentSessionWebsocketTopic is the hub key shared by publisher and subscriber. Access control is enforced at subscribe time — we trust the topic on broadcast.
func HandleAgentSessionEvent ¶ added in v0.21.0
func HandleCanvasDeleted ¶ added in v0.10.0
func HandleCanvasEventCreated ¶ added in v0.6.0
func HandleCanvasExecution ¶ added in v0.6.0
func HandleCanvasRun ¶ added in v0.21.0
func HandleCanvasUpdated ¶ added in v0.10.0
func HandleCanvasVersionUpdated ¶ added in v0.11.0
func HandleQueueItemConsumed ¶ added in v0.6.0
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 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"`
}
type RunStateWebsocketEvent ¶ added in v0.21.0
type RunStateWebsocketEvent struct {
Event string `json:"event"`
Payload json.RawMessage `json:"payload"`
}
Click to show internal directories.
Click to hide internal directories.