Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultXYZConfig = plotters.XYZConfig{ Title: "Report", X: "time", XTicker: "2006-01-02\n15:04:05", Y: "solar intensity (%)", Width: 800, Height: 600, Ranges: []float64{0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000}, ColorMap: moreland.SmoothBlueRed(), }
Functions ¶
func PlotterHandler ¶
func ReportHandler ¶
func ReportHandler(repo Repository, logger *slog.Logger) http.Handler
Types ¶
type Repository ¶
type Repository interface {
Get(from, to time.Time) (repository.Measurements, error)
GetDataRange() (time.Time, time.Time, error)
}
Click to show internal directories.
Click to hide internal directories.