wspubsub
package v2.23.0
Go to latest Published: Jun 3, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:5 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcWorkspaceEventChannel¶
WorkspaceEventChannel can be used to subscribe to events forworkspaces owned by the provided user ID.
Types¶
typeWorkspaceEvent¶
type WorkspaceEvent struct {KindWorkspaceEventKind `json:"kind"`WorkspaceIDuuid.UUID `json:"workspace_id" format:"uuid"`// AgentID is only set for WorkspaceEventKindAgent* events// (excluding AgentTimeout)AgentID *uuid.UUID `json:"agent_id,omitempty" format:"uuid"`}
func (*WorkspaceEvent)Validate¶
func (w *WorkspaceEvent) Validate()error
typeWorkspaceEventKind¶
type WorkspaceEventKindstring
const (WorkspaceEventKindStateChangeWorkspaceEventKind = "state_change"WorkspaceEventKindStatsUpdateWorkspaceEventKind = "stats_update"WorkspaceEventKindMetadataUpdateWorkspaceEventKind = "mtd_update"WorkspaceEventKindAppHealthUpdateWorkspaceEventKind = "app_health"WorkspaceEventKindAgentLifecycleUpdateWorkspaceEventKind = "agt_lifecycle_update"WorkspaceEventKindAgentConnectionUpdateWorkspaceEventKind = "agt_connection_update"WorkspaceEventKindAgentFirstLogsWorkspaceEventKind = "agt_first_logs"WorkspaceEventKindAgentLogsOverflowWorkspaceEventKind = "agt_logs_overflow"WorkspaceEventKindAgentTimeoutWorkspaceEventKind = "agt_timeout"WorkspaceEventKindAgentAppStatusUpdateWorkspaceEventKind = "agt_app_status_update")
Click to show internal directories.
Click to hide internal directories.