dashboard

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package dashboard mounts the nexus introspection surface under /__nexus. Ships a Vue dashboard (embedded from ui/dist), a JSON registry listing, and a WebSocket event stream.

Index

Constants

View Source
const Prefix = "/__nexus"

Variables

This section is empty.

Functions

func Mount

func Mount(e *gin.Engine, reg *registry.Registry, bus *trace.Bus, cfg Config)

Mount attaches:

GET  /__nexus/config      -> Config JSON
GET  /__nexus/endpoints   -> services + endpoints from the registry
GET  /__nexus/events      -> WebSocket: backlog (since=N) then live trace events
GET  /__nexus/, /assets/* -> embedded Vue dashboard

The events endpoint is only mounted if bus != nil.

Types

type Config

type Config struct {
	Name string `json:"Name"`
}

Config is what the dashboard client fetches at startup. Extend with more fields (version, environment, etc.) as needed.

Jump to

Keyboard shortcuts

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