velocity

package
v0.0.0-...-441f3cd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UrlApi          = "https://cms.velocity-aachen.de/backend/app"
	UrlStations     = UrlApi + "/stations"
	UrlStation      = UrlApi + "/stations/{station_id}"
	UrlStationSlots = UrlApi + "/stations/{station_id}/slots/full"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PedelecInfo

type PedelecInfo struct {
	StateOfCharge float64 `json:"stateOfCharge"`
	Availability  string  `json:"availability"`
	Name          string  `json:"name"`
}

type Station

type Station struct {
	StationID         int         `json:"stationId"`
	Name              string      `json:"name"`
	LocationLatitude  float64     `json:"locationLatitude"`
	LocationLongitude float64     `json:"locationLongitude"`
	State             string      `json:"state"`
	Note              string      `json:"note"`
	NumFreeSlots      int         `json:"numFreeSlots"`
	NumAllSlots       int         `json:"numAllSlots"`
	Image             interface{} `json:"image"`
}

type StationSlot

type StationSlot struct {
	StationSlotID       int         `json:"stationSlotId"`
	StationSlotPosition int         `json:"stationSlotPosition"`
	State               string      `json:"state"`
	IsOccupied          bool        `json:"isOccupied"`
	StateOfCharge       float64     `json:"stateOfCharge"`
	PedelecInfo         PedelecInfo `json:"pedelecInfo,omitempty"`
}

type StationSlots

type StationSlots struct {
	StationSlots []StationSlot `json:"stationSlots"`
}

Jump to

Keyboard shortcuts

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