v1

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type Report

type Report struct {
	Version    string            `json:"version"`
	Time       time.Time         `json:"time"`
	ClientUUID string            `json:"client_uuid"`
	Location   Location          `json:"location,omitempty"`
	Records    []json.RawMessage `json:"records,omitempty"`
}

func (*Report) ListRecords

func (r *Report) ListRecords() []json.RawMessage

func (*Report) SetLocation

func (r *Report) SetLocation(long, lat float64)

func (*Report) String

func (r *Report) String() string

Jump to

Keyboard shortcuts

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