handlers

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InternalDebugHandlers

func InternalDebugHandlers(deps debugHandlersDeps) []partial.HTTPHandlerPatternPair

InternalDebugHandlers defines internal debug handlers

  • dump heap
  • expvar
  • running stats

func InternalProfileHandlerFunctions

func InternalProfileHandlerFunctions() []partial.HTTPHandlerFuncPatternPair

InternalProfileHandlerFunctions profile handlers

func SelfHandlers

func SelfHandlers(deps selfHandlerDeps) []partial.HTTPHandlerPatternPair

SelfHandlers this service information handlers

Types

type DebugHandlers

type DebugHandlers interface {
	DebugVars() http.Handler
	Stats() http.HandlerFunc
	DumpFunc() http.HandlerFunc
}

DebugHandlers different debug handlers

type StatsInfo

type StatsInfo struct {
	Memory          *runtime.MemStats `json:"memory"`
	NumOfCPU        int               `json:"num_of_cpu"`
	NumOfGoRoutines int               `json:"num_of_go_routines"`
}

StatsInfo some statistics information

Jump to

Keyboard shortcuts

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