pprof

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(app *bebo.App, auth bebo.Authenticator, opts ...Option) error

Register mounts authenticated pprof routes on the app.

Types

type Option

type Option func(*options)

Option customizes pprof registration.

func WithAuthorizer

func WithAuthorizer(authorizer bebo.Authorizer) Option

WithAuthorizer sets a custom authorizer for pprof routes.

func WithForbiddenMessage

func WithForbiddenMessage(message string) Option

WithForbiddenMessage sets the forbidden error message.

func WithPrefix

func WithPrefix(prefix string) Option

WithPrefix overrides the default pprof prefix.

func WithUnauthorizedMessage

func WithUnauthorizedMessage(message string) Option

WithUnauthorizedMessage sets the unauthorized error message.

Jump to

Keyboard shortcuts

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