admin

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseProxy

type ReverseProxy struct {
	// contains filtered or unexported fields
}

func NewReverseProxy

func NewReverseProxy(logger log.Logger) *ReverseProxy

func (*ReverseProxy) ServeHTTP

func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the admin HTTP server, which exposes endpoints for metrics, health and inspecting the node status.

func NewServer

func NewServer(
	clusterState *cluster.State,
	registry *prometheus.Registry,
	verifier auth.Verifier,
	tlsConfig *tls.Config,
	logger log.Logger,
) *Server

func (*Server) AddStatus

func (s *Server) AddStatus(route string, handler status.Handler)

func (*Server) Serve

func (s *Server) Serve(ln net.Listener) error

func (*Server) SetReady added in v0.6.0

func (s *Server) SetReady(ready bool)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown attempts to gracefully shutdown the server by waiting for pending requests to complete.

Jump to

Keyboard shortcuts

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