diff options
author | Julien Dessaux | 2024-05-29 23:08:24 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-05-29 23:08:24 +0200 |
commit | 860984057d496999949f7b5680997a25b6c660c3 (patch) | |
tree | 32653e3f8e89464167d2ae3918a59a40364e020d /golang/pkg/model/route.go | |
parent | [golang] fixed golang api client design mistakes (diff) | |
download | spacetraders-860984057d496999949f7b5680997a25b6c660c3.tar.gz spacetraders-860984057d496999949f7b5680997a25b6c660c3.tar.bz2 spacetraders-860984057d496999949f7b5680997a25b6c660c3.zip |
[golang] added ships first api calls
Diffstat (limited to 'golang/pkg/model/route.go')
-rw-r--r-- | golang/pkg/model/route.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/golang/pkg/model/route.go b/golang/pkg/model/route.go new file mode 100644 index 0000000..0533e61 --- /dev/null +++ b/golang/pkg/model/route.go @@ -0,0 +1,17 @@ +package model + +import "time" + +type Route struct { + Arrival time.Time `json:"arrival"` + DepartureTime time.Time `json:"departureTime"` + Destination RouteEndpoint `json:"destination"` +} + +type RouteEndpoint struct { + Type string `json:"type"` + Symbol string `json:"symbol"` + SystemSymbol string `json:"systemSymbol"` + X int `json:"x"` + Y int `json:"y"` +} |