debug

package
v1.172.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.144.0

func IsEnabled(c *Config) bool

IsEnabled for HTTP.

func NewServeMux added in v1.154.7

func NewServeMux() *http.ServeMux

NewServeMux for debug.

func RegisterFgprof added in v1.154.1

func RegisterFgprof(mux *http.ServeMux)

RegisterFgprof for debug.

func RegisterPprof added in v1.144.0

func RegisterPprof(mux *http.ServeMux)

RegisterPprof for debug.

func RegisterPsutil added in v1.144.0

func RegisterPsutil(mux *http.ServeMux, json *marshaller.JSON)

RegisterPprof for debug.

func RegisterStatsviz added in v1.144.0

func RegisterStatsviz(mux *http.ServeMux)

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
}

Server for debug.

func NewServer added in v1.144.0

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

NewServer for debug.

type ServerParams added in v1.144.0

type ServerParams struct {
	fx.In

	Shutdowner fx.Shutdowner
	Mux        *http.ServeMux
	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