summaryrefslogtreecommitdiff
path: root/golang/pkg/api/ships.go
diff options
context:
space:
mode:
Diffstat (limited to 'golang/pkg/api/ships.go')
-rw-r--r--golang/pkg/api/ships.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/golang/pkg/api/ships.go b/golang/pkg/api/ships.go
index 485f437..93963c3 100644
--- a/golang/pkg/api/ships.go
+++ b/golang/pkg/api/ships.go
@@ -14,10 +14,10 @@ func (c *Client) dock(s *model.Ship) error {
return nil
}
uriRef := url.URL{Path: path.Join("my/ships", s.Symbol, "dock")}
- type DockResponse struct {
+ type dockResponse struct {
Nav *model.Nav `json:"nav"`
}
- var response DockResponse
+ var response dockResponse
if err := c.Send("POST", &uriRef, nil, &response); err != nil {
return fmt.Errorf("failed to dock ship %s: %w", s.Symbol, err)
}
@@ -39,10 +39,10 @@ func (c *Client) orbit(s *model.Ship) error {
return nil
}
uriRef := url.URL{Path: path.Join("my/ships", s.Symbol, "orbit")}
- type OrbitResponse struct {
+ type orbitResponse struct {
Nav *model.Nav `json:"nav"`
}
- var response OrbitResponse
+ var response orbitResponse
if err := c.Send("POST", &uriRef, nil, &response); err != nil {
return fmt.Errorf("failed to orbit ship %s: %w", s.Symbol, err)
}
@@ -58,12 +58,12 @@ func (c *Client) Refuel(s *model.Ship, db *database.DB) error {
return fmt.Errorf("failed to refuel ship %s: %w", s.Symbol, err)
}
uriRef := url.URL{Path: path.Join("my/ships", s.Symbol, "refuel")}
- type RefuelResponse struct {
+ type refuelResponse struct {
Agent *model.Agent `json:"agent"`
Fuel *model.Fuel `json:"fuel"`
Transaction *model.Transaction `json:"transaction"`
}
- var response RefuelResponse
+ var response refuelResponse
if err := c.Send("POST", &uriRef, nil, &response); err != nil {
return fmt.Errorf("failed to refuel ship %s: %w", s.Symbol, err)
}