Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGate ¶ added in v2.4.4
func NewGate(name string, enabled *atomic.Bool) *featuregate.Gate
NewGate builds a featuregate.Gate pre-wired with the admin audit metric. Callers don't need to know about the metric layer; this keeps the "every admin toggle is audited" invariant inside this package.
func NewHTTPHandler ¶ added in v2.3.1
func NewHTTPHandler( logLevel *slog.LevelVar, health *healthAPI.Health, apiLogsGate *featuregate.Gate, txpoolAPIGate *featuregate.Gate, pprofGate *featuregate.Gate, master *node.Master, ) http.HandlerFunc
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package featuregate provides a generic runtime on/off toggle backed by an *atomic.Bool.
|
Package featuregate provides a generic runtime on/off toggle backed by an *atomic.Bool. |
|
Package pprof wires net/http/pprof handlers under /debug/pprof/* on a gorilla/mux router root, gated by a featuregate.Gate so they only serve while pprof is enabled at runtime.
|
Package pprof wires net/http/pprof handlers under /debug/pprof/* on a gorilla/mux router root, gated by a featuregate.Gate so they only serve while pprof is enabled at runtime. |