Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dashboard ¶
Dashboard is an actor that serves a web-based dashboard for monitoring various providers and states.
func NewDashboard ¶
func NewDashboard(name string, opts ...DashboardOption) *Dashboard
NewDashboard creates a new Dashboard instance with the given name and options.
type DashboardOption ¶
type DashboardOption func(*Dashboard)
DashboardOption represents a functional option for configuring the Dashboard. It allows adding providers to observe, which will be reflected in the real-time UI.
func WithObserve ¶
func WithObserve[V any](provider bus.Provider[V]) DashboardOption
WithObserve adds a read-only card to the dashboard for the given provider. The dashboard will subscribe to the provider for updates and reflect changes in the UI, but will not allow user input to update the provider.
Click to show internal directories.
Click to hide internal directories.