debug

package
v0.0.0-...-1215978 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugService

type DebugService struct {
	Config config.Config
	// contains filtered or unexported fields
}

injectable debug service

func (*DebugService) Handle

func (s *DebugService) Handle(pattern string, handler http.Handler)

Use Handle and HandleFunc to add new services on the internal debugging port.

func (*DebugService) HandleFunc

func (s *DebugService) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*DebugService) Publish

func (s *DebugService) Publish(name string, v interface{})

Publish an expvar at /debug/vars, possibly using Func

func (*DebugService) Start

func (s *DebugService) Start() error

type Func

type Func func() interface{}

Jump to

Keyboard shortcuts

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