data

package
v0.0.0-...-518c124 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryData

type HistoryData interface {
	SaveDayData(data model.Data) error
	SaveWeekData(data model.Data) error
	SaveYearData(data model.Data) error
	GetLastTimeYearDataWasSaved() (time.Time, error)
	GetLastTimeWeekDataWasSaved() (time.Time, error)
	GetDayDataPoints(dataType string) ([]model.Data, error)
	GetYearDataPoints(dataType string) ([]model.Data, error)
	GetWeekDataPoints(dataType string) ([]model.Data, error)
	GetDataPointsFromLastHour(dataType string) ([]model.Data, error)
}

HistoryData interface

func New

func New(address string) (HistoryData, error)

New History data

Jump to

Keyboard shortcuts

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