admin

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package admin is baseplate boilerplate for common internal admin features.

Index

Constants

View Source
const (
	DefaultPort = "6060"
	EnvVarPort  = "BASEPLATE_SIDECAR_ADMIN_PORT"
)

Constants regarding the admin port

Variables

Mux is the default ServeMux to be used for admin servers in packages like httpbp, thriftbp, etc. Mux configures the following routes:

metrics       - serve /metrics for prometheus
profiling     - serve /debug/pprof for profiling, ref: https://pkg.go.dev/net/http/pprof

Functions

func Serve

func Serve() error

Serve the admin http server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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