dashboard

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBridge

func RegisterBridge(b *bridge.Bridge, managerFn func() internal.Manager, configFn func() internal.Config) error

RegisterBridge registers all streaming bridge functions on the given bridge instance. It accepts resolver functions so that values are resolved at request time (after all extensions are initialized).

Types

type StreamingContributor

type StreamingContributor struct {
	// contains filtered or unexported fields
}

StreamingContributor implements contributor.LocalContributor for the streaming extension. It uses resolver functions to lazily obtain the manager and config at render time, ensuring they are available even when the dashboard discovers this contributor before the streaming extension has fully initialized.

func NewStreamingContributor

func NewStreamingContributor(managerFn func() internal.Manager, configFn func() internal.Config) *StreamingContributor

NewStreamingContributor creates a new streaming dashboard contributor. The resolver functions are called at render time, not at construction time, so the manager/config can be nil during initial discovery and will resolve correctly once the streaming extension finishes its Register/Start lifecycle.

func (*StreamingContributor) Manifest

func (c *StreamingContributor) Manifest() *contributor.Manifest

Manifest returns the streaming contributor manifest.

func (*StreamingContributor) RenderPage

func (c *StreamingContributor) RenderPage(ctx context.Context, route string, params contributor.Params) (templ.Component, error)

RenderPage renders a page for the given route.

func (*StreamingContributor) RenderSettings

func (c *StreamingContributor) RenderSettings(_ context.Context, settingID string) (templ.Component, error)

RenderSettings renders a settings panel for the given setting ID.

func (*StreamingContributor) RenderWidget

func (c *StreamingContributor) RenderWidget(ctx context.Context, widgetID string) (templ.Component, error)

RenderWidget renders a specific widget by ID.

Jump to

Keyboard shortcuts

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