Movatterモバイル変換


[0]ホーム

URL:


wspubsub

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:5Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcHandleWorkspaceEvent

func HandleWorkspaceEvent(cb func(ctxcontext.Context, payloadWorkspaceEvent, errerror)) func(ctxcontext.Context, message []byte, errerror)

funcWorkspaceEventChannel

func WorkspaceEventChannel(ownerIDuuid.UUID)string

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")

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp