metricator/internal/httpserver/handler.go

21 lines
399 B
Go
Raw Normal View History

2020-11-28 23:34:20 +05:00
package httpserver
import (
"net/http"
"go.dev.pztrn.name/metricator/internal/common"
)
// HTTP requests handler.
type handler struct {
handler common.HTTPHandlerFunc
}
// Registers request's handler.
func (h *handler) register(hndl common.HTTPHandlerFunc) {
h.handler = hndl
}
// ServeHTTP handles every HTTP request.
func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {}