Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
List of all known TransIDs
Functions ¶
Types ¶
type Location ¶
type Location struct { Name string `json:"name"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` }
func (*Location) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Location) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type Mission ¶
type Mission struct { ID int32 `json:"id"` Date time.Time `json:"date"` Start Location `json:"start"` Dest Location `json:"dest"` Dist float64 `json:"dist"` Trans TransID `json:"transport_id"` }
func (*Mission) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Mission) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type Stats ¶
type Summary ¶ added in v0.9.0
type Summary struct { Start time.Time `json:"start"` Stop time.Time `json:"stop"` Countries map[string]int `json:"countries"` Cities map[string]int `json:"cities"` All Stats `json:"all_missions"` Planned Stats `json:"planned_missions"` Executed Stats `json:"executed_missions"` }
func NewSummary ¶ added in v0.9.0
func NewSummary() *Summary
Click to show internal directories.
Click to hide internal directories.