wdebug

package
v2.75.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoute

func RegisterRoute(router wrouter.Router, sharedSecret refreshable.String) error

Types

type DiagnosticHandler

type DiagnosticHandler interface {
	Type() DiagnosticType
	Documentation() string
	ContentType() string
	SafeLoggable() bool
	Extension() string
	WriteDiagnostic(ctx context.Context, w io.Writer) error
}

type DiagnosticType

type DiagnosticType string
const (
	DiagnosticTypeCPUProfile1MinuteV1 DiagnosticType = "go.profile.cpu.1minute.v1"
	DiagnosticTypeHeapProfileV1       DiagnosticType = "go.profile.heap.v1"
	DiagnosticTypeAllocsProfileV1     DiagnosticType = "go.profile.allocs.v1"
	DiagnosticTypeTrace1MinuteV1      DiagnosticType = "go.trace.1minute.v1"
	DiagnosticTypeGoroutinesV1        DiagnosticType = "go.goroutines.v1"
	DiagnosticTypeMetricNamesV1       DiagnosticType = "metric.names.v1"
	DiagnosticTypeSystemTimeV1        DiagnosticType = "os.system.clock.v1"
)

Jump to

Keyboard shortcuts

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