Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dummy = &dummy{}
Dummy is a dummy recorder.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder interface { // ObserveHTTPRequestDuration measures the duration of an HTTP request. ObserveHTTPRequestDuration(id string, duration time.Duration, method, code string) }
Recorder knows how to record and measure the metrics. This Interface has the required methods to be used with the HTTP middlewares.
Click to show internal directories.
Click to hide internal directories.