summaryrefslogtreecommitdiffhomepage
path: root/models.go
blob: 9a0a67f689dac91bf6162e77b859087c7224e654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"time"
)

type Killmail struct {
	Id   uint64 `json:"id"`
	Hash string `json:"hash"`
}

type Team []uint32

type Battle struct {
	Id           string     `json:"-"`
	LastModified time.Time  `json:"-"`
	Teams        [2]Team    `json:"teams"`
	Killmails    []Killmail `json:"killmails"`
}