summaryrefslogtreecommitdiffhomepage
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/models.go b/models.go
index 37059dc..9a0a67f 100644
--- a/models.go
+++ b/models.go
@@ -5,16 +5,15 @@ import (
)
type Killmail struct {
- Id string `json:"id"`
+ Id uint64 `json:"id"`
Hash string `json:"hash"`
}
-type Wreck struct {
- Killmail
- Team string `json:"team"`
-}
+type Team []uint32
type Battle struct {
- Id string
- Date time.Time
+ Id string `json:"-"`
+ LastModified time.Time `json:"-"`
+ Teams [2]Team `json:"teams"`
+ Killmails []Killmail `json:"killmails"`
}