Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMux ¶
func NewMux(opts ServerOptions) (http.Handler, error)
NewMux constructs the console HTTP mux with the supplied dependencies.
func StartServer ¶
func StartServer(ctx context.Context, addr string, opts ServerOptions) error
StartServer launches the HTTP console on the provided address. When store is nil, the server falls back to mock responses so the UI still functions.
Types ¶
type AuthConfig ¶
type MetricsProvider ¶
type MetricsProvider interface {
Snapshot(ctx context.Context) (*MetricsSnapshot, error)
}
func NewPromMetricsClient ¶
func NewPromMetricsClient(url string) MetricsProvider
type MetricsSnapshot ¶
type ServerOptions ¶
type ServerOptions struct {
Store metadata.Store
Metrics MetricsProvider
Logger *log.Logger
Auth AuthConfig
}
Click to show internal directories.
Click to hide internal directories.