caddy: github.com/mholt/caddy/caddyhttp/expvar Index | Files

package expvar

import "github.com/mholt/caddy/caddyhttp/expvar"

Index

Package Files

expvar.go setup.go

type ExpVar Uses

type ExpVar struct {
    Next     httpserver.Handler
    Resource Resource
}

ExpVar is a simple struct to hold expvar's configuration

func (ExpVar) ServeHTTP Uses

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 Uses

type Resource string

Resource contains the path to the expvar entry point

Package expvar imports 7 packages (graph) and is imported by 108 packages. Updated 2019-07-03. Refresh now. Tools for package owners.