Documentation
¶
Overview ¶
Package fxmod integrates nexus with go.uber.org/fx. Add fxmod.Module to your fx.New(...) call; nexus provides *nexus.App into the graph and manages the HTTP server's start/stop via fx.Lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Module provides *nexus.App plus a managed *http.Server bound to its Gin engine. Inputs expected from the fx graph: Config. Outputs: *nexus.App.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Addr is the HTTP listen address (default ":8080").
Addr string
// DashboardName is the brand shown in the dashboard header and tab title
// (default "Nexus"). The name is served over /__nexus/config so you can
// change it per environment without rebuilding the UI.
DashboardName string
// TraceCapacity is the ring-buffer size for request traces.
// 0 disables tracing — the Traces tab will stay empty.
TraceCapacity int
// EnableDashboard mounts /__nexus/* if true.
EnableDashboard bool
}
Config controls how the nexus App is built. Supply it via fx.Supply(cfg) or register a provider that returns it.
Click to show internal directories.
Click to hide internal directories.