debugserver

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DebugPort int64
}

Config configures what port the debug server listens to

func (*Config) Load

func (c *Config) Load(d *distconf.Distconf)

Load the server config values from distconf

type DebugServer

type DebugServer struct {
	ExpvarHandler *expvar2.Handler
	// contains filtered or unexported fields
}

DebugServer listens to a private debugging port to explose internal metrics for debug purposes

func NewDebugServer

func NewDebugServer(conf *Config, explorableObject interface{}, handler *mux.Router) (*DebugServer, error)

NewDebugServer creates a new listener for debugging the golang server

func (*DebugServer) Close

func (d *DebugServer) Close() error

Close stops the listening server

Jump to

Keyboard shortcuts

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