http

package
v0.0.0-...-183a9e7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Overview

Example (GorillaMux)
package main

import (
	"log"
	"net/http"

	gomhttp "github.com/rakyll/gom/http"
)

func main() {
	mux := http.NewServeMux()
	mux.HandleFunc("/debug/_gom", gomhttp.Handler())
	log.Println(http.ListenAndServe("localhost:6060", nil))
}
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.HandlerFunc

Handler returns an http.HandlerFunc that returns pprof profiles and additional metrics. The handler must be accessible through the "/debug/_gom" route in order for gom to display the stats from the debugged program. See the godoc examples for usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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