summaryrefslogtreecommitdiff
path: root/golang/pkg/model
diff options
context:
space:
mode:
Diffstat (limited to 'golang/pkg/model')
-rw-r--r--golang/pkg/model/agent.go10
-rw-r--r--golang/pkg/model/register.go9
2 files changed, 19 insertions, 0 deletions
diff --git a/golang/pkg/model/agent.go b/golang/pkg/model/agent.go
new file mode 100644
index 0000000..1c2b80b
--- /dev/null
+++ b/golang/pkg/model/agent.go
@@ -0,0 +1,10 @@
+package model
+
+type Agent struct {
+ AccountID string `json:"accountId"`
+ Credits int `json:"credits"`
+ Headquarters string `json:"headquarters"`
+ ShipCount int `json:"shipCount"`
+ StartingFaction string `json:"startingFaction"`
+ Symbol string `json:"symbol"`
+}
diff --git a/golang/pkg/model/register.go b/golang/pkg/model/register.go
new file mode 100644
index 0000000..cf48b8b
--- /dev/null
+++ b/golang/pkg/model/register.go
@@ -0,0 +1,9 @@
+package model
+
+type Register struct {
+ Agent Agent `json:"agent"`
+ //contract
+ //faction
+ Ship Ship `json:"ship"`
+ Token string `json:"token"`
+}