Documentation ¶
Index ¶
- func CreateGrafanaDashboard(ctx context.Context, id string, name string) error
- func Geocheck(id string, ipAddress string) (*types.GeoCheck, error)
- func GetDayStart(ctx context.Context, timezoneOffset int, when time.Time) (*time.Time, error)
- func GetFourHourStart(ctx context.Context, timezoneOffset int, when time.Time) (*time.Time, error)
- func GetLatestSpeeds(id string) (*types.DishySpeed, error)
- func GetLatestStats(id string) (*types.DishyStat, error)
- func GetRecentStats(id string) (map[time.Time]*types.DishyStat, map[time.Time]*types.DishySpeed, error)
- func UpdateGrafanaDashboard(ctx context.Context, id string, name string) error
- func UpdatePublicDashboards(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGrafanaDashboard ¶
CreateGrafanaDashboard will create the default dashboard in grafana for this device and return the ID of the grafana dashboard
func Geocheck ¶
Geocheck will look up the ip address and make sure it looks to be a starlink address
func GetDayStart ¶
func GetFourHourStart ¶
func GetLatestSpeeds ¶
func GetLatestSpeeds(id string) (*types.DishySpeed, error)
func GetLatestStats ¶
GetLatestStats will query timescale for the current stats
func GetRecentStats ¶
func UpdateGrafanaDashboard ¶
UpdateGrafanaDashboard will update the dashboard for a dishy
func UpdatePublicDashboards ¶
UpdatePublicDashboards will update all public dashboards (not dishy dahsboards)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.