diagnostics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package diagnostics provides functions for enabling diagnostics on the application. Primarily this is for serving pprof endpoints.

Index

Constants

This section is empty.

Variables

View Source
var Flags = flag.Flags{
	&flag.Boolean{
		Name:        "diagnostics",
		Usage:       "Enables pprof endpoints at /pprof/* for diagnostics",
		EnvVar:      "ENABLE_DIAGNOSTICS",
		Destination: &enableDiagnostics,
		Hidden:      true,
	},
}

Flags contains all command-line flags that can be used to configure diagnostics.

Functions

func Serve

func Serve(r *http.ServeMux)

Serve diagnostic endpoints on the provided http.ServeMux.

Types

This section is empty.

Jump to

Keyboard shortcuts

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