Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProfilingPort specifies the port where profiling data is available when profiling is enabled
ProfilingPort = 8008
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds the main HTTP handler and a flag indicating whether the handler is active
func NewHandler ¶
func NewHandler(logger *zap.SugaredLogger, enableProfiling bool) *Handler
NewHandler create a new ProfilingHandler which serves runtime profiling data according to the given context path
func (*Handler) UpdateFromConfigMap ¶
UpdateFromConfigMap modifies the Enabled flag in the Handler according to the value in the given ConfigMap
Click to show internal directories.
Click to hide internal directories.