scootertype

package
v0.0.0-...-b412545 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoJSON

type GeoJSON struct {
	Type        string    `json:"-"`
	Coordinates []float64 `json:"coordinates"`
}

type Location

type Location [2]float64

type RectangularQueryResult

type RectangularQueryResult struct {
	Scooters []RectangularQueryResultItem `json:"scooters"`
}

type RectangularQueryResultItem

type RectangularQueryResultItem struct {
	ScooterID  string    `bson:"_id" json:"scooterID"`
	Status     string    `bson:"status" json:"status"`
	LastUpdate time.Time `bson:"timestamp" json:"lastStatus"`
	Location   Location  `bson:"location" json:"location"`
}

type Scooter

type Scooter struct {
	ID    string `bson:"_id" json:"ID"`
	InUse bool   `bson:"inuse" json:"inuse"`
}

type ScooterStatus

type ScooterStatus struct {
	ID        string    `bson:"_id,omitempty"`
	ScooterID string    `bson:"scooterID"`
	Status    string    `bson:"status"`
	Timestamp time.Time `bson:"timestamp"`
	Location  GeoJSON   `bson:"location"`
	EventType string    `bson:"eventType"`
}

Jump to

Keyboard shortcuts

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