trace

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAuth = func(req *stdhttp.Request) (any, sensitive bool) {
	return true, true
}

NoAuth disables authentication entirely. Useful for remote tracing.

Functions

func Events

func Events(w stdhttp.ResponseWriter, req *stdhttp.Request)

Events responds with a page of events collected by EventLogs. The package initialization registers it in stdhttp.DefaultServeMux at /debug/events.

It performs authorization by running AuthRequest.

func RegisterRoutes

func RegisterRoutes(h http.HandlerAcceptor)

RegisterRoutes register pprof routes in an http.HandlerAcceptor.

func SetAuth added in v0.14.0

func SetAuth(f AuthFunc)

SetAuth is a proxy for the trace.AuthRequest variable to avoid importing it's package.

func Traces

func Traces(w stdhttp.ResponseWriter, req *stdhttp.Request)

Traces responds with traces from the program. The package initialization registers it in http.DefaultServeMux at /debug/requests.

It performs authorization by running AuthRequest.

Types

type AuthFunc added in v0.14.0

type AuthFunc func(req *stdhttp.Request) (any, sensitive bool)

AuthFunc is the type for the trace.AuthRequest variable.

Jump to

Keyboard shortcuts

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