dashboardworkspace

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventCount int64 = 0

Functions

This section is empty.

Types

type WorkspaceEvents

type WorkspaceEvents struct {
	*workspace.Workspace
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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