Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
WithForbiddenMessage sets the forbidden error message.
func WithPrefix ¶
WithPrefix overrides the default pprof prefix.
func WithUnauthorizedMessage ¶
WithUnauthorizedMessage sets the unauthorized error message.
Click to show internal directories.
Click to hide internal directories.