Documentation ¶
Index ¶
- Variables
- type WorkspaceEvents
- func (w *WorkspaceEvents) Close()
- func (w *WorkspaceEvents) PublishDashboardEvent(ctx context.Context, e dashboardevents.DashboardEvent)
- func (w *WorkspaceEvents) RegisterDashboardEventHandler(ctx context.Context, handler dashboardevents.DashboardEventHandler)
- func (w *WorkspaceEvents) UnregisterDashboardEventHandlers()
Constants ¶
This section is empty.
Variables ¶
View Source
var EventCount int64 = 0
Functions ¶
This section is empty.
Types ¶
type WorkspaceEvents ¶
WorkspaceEvents is a wrapper around workspace.WorkspaceEvents that adds dashboard specific event handling
func NewWorkspaceEvents ¶
func NewWorkspaceEvents(workspace *workspace.Workspace) *WorkspaceEvents
func (*WorkspaceEvents) Close ¶
func (w *WorkspaceEvents) Close()
func (*WorkspaceEvents) PublishDashboardEvent ¶
func (w *WorkspaceEvents) PublishDashboardEvent(ctx context.Context, e dashboardevents.DashboardEvent)
func (*WorkspaceEvents) RegisterDashboardEventHandler ¶
func (w *WorkspaceEvents) RegisterDashboardEventHandler(ctx context.Context, handler dashboardevents.DashboardEventHandler)
RegisterDashboardEventHandler starts the event handler goroutine if necessary and adds the event handler to our list
func (*WorkspaceEvents) UnregisterDashboardEventHandlers ¶
func (w *WorkspaceEvents) UnregisterDashboardEventHandlers()
UnregisterDashboardEventHandlers clears all event handlers used when generating multiple snapshots
Click to show internal directories.
Click to hide internal directories.