admin

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: LGPL-3.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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