solar-toolkit/gateway/handler/handler.go

22 lines
349 B
Go

package handler
import (
"net/http"
"git.netflux.io/rob/solar-toolkit/inverter"
)
type Store interface {
InsertETRuntimeData(*inverter.ETRuntimeData) error
}
type Handler struct {
store Store
}
func NewHandler(store Store) *Handler { return &Handler{store: store} }
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}