routehandler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 5 Imported by: 0

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(
	statter statsdclient.Statter,
) *RouteHandler

NewRouteHandler creates collection of route handlers

func (*RouteHandler) HandleHeartbeatRequest

func (routeHandler *RouteHandler) HandleHeartbeatRequest(w http.ResponseWriter, r *http.Request)

func (*RouteHandler) HandleMetric

func (routeHandler *RouteHandler) HandleMetric(
	w http.ResponseWriter,
	r *http.Request,
	metricType string,
	metricKey string,
)

Jump to

Keyboard shortcuts

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