summaryrefslogtreecommitdiffhomepage
path: root/models.go
blob: 95c30c8887b45548cf244dec62af0e8ff2fafb37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"`
	Name         string     `json:"name"`
}

type EsiKillmail struct {
	SolarSystemId int32 `json:"solar_system_id"`
	Victim        struct {
		Position struct {
			X float64 `json:"x"`
			Y float64 `json:"y"`
			Z float64 `json:"z"`
		} `json:"position"`
	} `json:"victim"`
}

type EsiUniverseSystem struct {
	Name string `json:"name"`
}