expvar

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpVar

type ExpVar struct {
	Next     httpserver.Handler
	Resource Resource
}

ExpVar is a simple struct to hold expvar's configuration

func (ExpVar) ServeHTTP

func (e ExpVar) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

ServeHTTP handles requests to expvar's configured entry point with expvar, or passes all other requests up the chain.

type Resource

type Resource string

Resource contains the path to the expvar entry point

Jump to

Keyboard shortcuts

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