Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteHandler ¶
type RouteHandler struct {
// contains filtered or unexported fields
}
RouteHandler as a collection of route handlers
func NewRouteHandler ¶
func NewRouteHandler( statsdClient statsdclient.StatsdClientInterface, metricPrefix string, ) *RouteHandler
NewRouteHandler creates collection of route handlers
func (*RouteHandler) HandleHeartbeatRequest ¶
func (routeHandler *RouteHandler) HandleHeartbeatRequest(w http.ResponseWriter, r *http.Request)
Handle heartbeat request
func (*RouteHandler) HandleMetric ¶
func (routeHandler *RouteHandler) HandleMetric( w http.ResponseWriter, r *http.Request, metricType string, metricKeySuffix string, )
HandleMetric reads count, gauge, timing and set metrics from HTTP and sent them to StatsD
Source Files ¶
Click to show internal directories.
Click to hide internal directories.