Help us shape the future of Go! Take the 2026 Go Developer Survey

reporting

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

README

Workspace reporting registry

This package loads a workspace's Forge reporting registry, optionally watches development assets, and enriches report windows and view catalogs from the current valid registry. Invalid reloads retain the last valid registry.

Configure returns a Runtime; the host must call Close during shutdown. Use Runtime.WindowEnricher when loading workspace windows and Runtime.EnrichView when listing views. RegistryEnricher also accepts an explicit registry callback for immutable source compilation.

The package depends on Forge's reporting registry, Core view contracts and Core window loading. It does not depend on host runtime composition, an embedding application's metadata, or a particular report datasource implementation.

Documentation

Overview

Package reporting owns workspace reporting discovery, reload lifecycle and neutral enrichment of framework windows and view catalogs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistryEnricher

func RegistryEnricher(current func() *reportregistry.Registry) windowloader.WorkspaceWindowEnricher

Types

type Runtime

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

Runtime retains the current registry and any development watcher.

func Configure

func Configure(ctx context.Context, workspaceRoot string, config *wscfg.Root, development bool) (*Runtime, error)

Configure loads the workspace registry and optionally watches development assets.

func (*Runtime) Close

func (r *Runtime) Close()

func (*Runtime) EnrichView

func (r *Runtime) EnrichView(_ context.Context, item *uiview.ListItem) error

func (*Runtime) WindowEnricher

func (r *Runtime) WindowEnricher() windowloader.WorkspaceWindowEnricher

WindowEnricher supplies the current valid registry to workspace window reads.

Jump to

Keyboard shortcuts

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