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
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
Click to show internal directories.
Click to hide internal directories.