metrics

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterHandler

func CounterHandler(w http.ResponseWriter, r *http.Request)

CounterHandler will update a counter each time it's called

func ReportHandler

func ReportHandler(w http.ResponseWriter, r *http.Request)

ReportHandler will emit the current metrics in json format

func TimerHandler

func TimerHandler(w http.ResponseWriter, r *http.Request)

TimerHandler records the duration required to compelete

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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