reports

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

type Get func([]device.Device) (Reports, error)

func GetFn

func GetFn(url string, days int) Get

type NonFatalError

type NonFatalError []error

func (NonFatalError) Error

func (e NonFatalError) Error() string

type PayloadData

type PayloadData struct {
	Timestamp         time.Time
	Longitude         float64
	Latitude          float64
	AccuracyMeters    uint8
	ConfidencePercent uint8
}

type Report

type Report struct {
	DatePublished time.Time
	Description   string
	Data          PayloadData
	StatusCode    int64
}

type Reports

type Reports map[string][]Report

Jump to

Keyboard shortcuts

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