snitch

package
v0.0.0-...-8e4f697 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2013 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseUrl = "/debug/snitch"
)

Variables

This section is empty.

Functions

func GcHandler

func GcHandler(response http.ResponseWriter, request *http.Request)

func PanicHandler

func PanicHandler(response http.ResponseWriter, request *http.Request)

func RegisterCommand

func RegisterCommand(path, description string, handler http.HandlerFunc)

func SnitchHandler

func SnitchHandler(response http.ResponseWriter, request *http.Request)

Types

type JsonFunc

type JsonFunc func() string

JsonFunc wraps a func() string to create value that satisfies expvar.Var the function should return properly escaped json

func (JsonFunc) String

func (f JsonFunc) String() string

type SnitchCmd

type SnitchCmd struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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