debug

package
v1.287.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 17 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.144.0

func IsEnabled(cfg *Config) bool

IsEnabled for HTTP.

func RegisterFgprof added in v1.154.1

func RegisterFgprof(srv *Server)

RegisterFgprof for debug.

func RegisterPprof added in v1.144.0

func RegisterPprof(srv *Server)

RegisterPprof for debug.

func RegisterPsutil added in v1.144.0

func RegisterPsutil(srv *Server, content *content.Content)

RegisterPprof for debug.

func RegisterStatsviz added in v1.144.0

func RegisterStatsviz(srv *Server)

RegisterStatsviz for debug.

Types

type Config added in v1.112.0

type Config struct {
	*server.Config `yaml:",inline" json:",inline" toml:",inline"`
}

Config for HTTP.

type Server added in v1.144.0

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

Server for debug.

func NewServer added in v1.144.0

func NewServer(params ServerParams) (*Server, error)

NewServer for debug.

func (*Server) ServeMux added in v1.154.3

func (s *Server) ServeMux() *http.ServeMux

ServeMux for debug.

type ServerParams added in v1.144.0

type ServerParams struct {
	fx.In

	Shutdowner fx.Shutdowner
	Config     *Config
	Logger     *zap.Logger
}

ServerParams for debug.

Jump to

Keyboard shortcuts

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