-
Notifications
You must be signed in to change notification settings - Fork 1
/
schemas.go
147 lines (123 loc) · 4.58 KB
/
schemas.go
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// generated with go run gen/main.go
package eddnc
import _ "embed"
const ScmNo = 18
//go:generate stringer -type ScmID
const (
Sapproachsettlement ScmID = 0
Sblackmarket ScmID = 1
Scodexentry ScmID = 2
Scommodity ScmID = 3
Sdockingdenied ScmID = 4
Sdockinggranted ScmID = 5
Sfcmaterials_capi ScmID = 6
Sfcmaterials_journal ScmID = 7
Sfssallbodiesfound ScmID = 8
Sfssbodysignals ScmID = 9
Sfssdiscoveryscan ScmID = 10
Sfsssignaldiscovered ScmID = 11
Sjournal ScmID = 12
Snavbeaconscan ScmID = 13
Snavroute ScmID = 14
Soutfitting ScmID = 15
Sscanbarycentre ScmID = 16
Sshipyard ScmID = 17
)
var ScmURLs = []string{
"https://eddn.edcd.io/schemas/approachsettlement/1",
"https://eddn.edcd.io/schemas/blackmarket/1",
"https://eddn.edcd.io/schemas/codexentry/1",
"https://eddn.edcd.io/schemas/commodity/3",
"https://eddn.edcd.io/schemas/dockingdenied/1",
"https://eddn.edcd.io/schemas/dockinggranted/1",
"https://eddn.edcd.io/schemas/fcmaterials_capi/1",
"https://eddn.edcd.io/schemas/fcmaterials_journal/1",
"https://eddn.edcd.io/schemas/fssallbodiesfound/1",
"https://eddn.edcd.io/schemas/fssbodysignals/1",
"https://eddn.edcd.io/schemas/fssdiscoveryscan/1",
"https://eddn.edcd.io/schemas/fsssignaldiscovered/1",
"https://eddn.edcd.io/schemas/journal/1",
"https://eddn.edcd.io/schemas/navbeaconscan/1",
"https://eddn.edcd.io/schemas/navroute/1",
"https://eddn.edcd.io/schemas/outfitting/2",
"https://eddn.edcd.io/schemas/scanbarycentre/1",
"https://eddn.edcd.io/schemas/shipyard/2",
}
var ScmMap = map[string]ScmID{
"https://eddn.edcd.io/schemas/approachsettlement/1": Sapproachsettlement,
"https://eddn.edcd.io/schemas/blackmarket/1": Sblackmarket,
"https://eddn.edcd.io/schemas/codexentry/1": Scodexentry,
"https://eddn.edcd.io/schemas/commodity/3": Scommodity,
"https://eddn.edcd.io/schemas/dockingdenied/1": Sdockingdenied,
"https://eddn.edcd.io/schemas/dockinggranted/1": Sdockinggranted,
"https://eddn.edcd.io/schemas/fcmaterials_capi/1": Sfcmaterials_capi,
"https://eddn.edcd.io/schemas/fcmaterials_journal/1": Sfcmaterials_journal,
"https://eddn.edcd.io/schemas/fssallbodiesfound/1": Sfssallbodiesfound,
"https://eddn.edcd.io/schemas/fssbodysignals/1": Sfssbodysignals,
"https://eddn.edcd.io/schemas/fssdiscoveryscan/1": Sfssdiscoveryscan,
"https://eddn.edcd.io/schemas/fsssignaldiscovered/1": Sfsssignaldiscovered,
"https://eddn.edcd.io/schemas/journal/1": Sjournal,
"https://eddn.edcd.io/schemas/navbeaconscan/1": Snavbeaconscan,
"https://eddn.edcd.io/schemas/navroute/1": Snavroute,
"https://eddn.edcd.io/schemas/outfitting/2": Soutfitting,
"https://eddn.edcd.io/schemas/scanbarycentre/1": Sscanbarycentre,
"https://eddn.edcd.io/schemas/shipyard/2": Sshipyard,
}
var ScmDefs = []string{
approachsettlementSchema,
blackmarketSchema,
codexentrySchema,
commoditySchema,
dockingdeniedSchema,
dockinggrantedSchema,
fcmaterials_capiSchema,
fcmaterials_journalSchema,
fssallbodiesfoundSchema,
fssbodysignalsSchema,
fssdiscoveryscanSchema,
fsssignaldiscoveredSchema,
journalSchema,
navbeaconscanSchema,
navrouteSchema,
outfittingSchema,
scanbarycentreSchema,
shipyardSchema,
}
var (
//go:embed schemas/approachsettlement-v1.0.json
approachsettlementSchema string
//go:embed schemas/blackmarket-v1.0.json
blackmarketSchema string
//go:embed schemas/codexentry-v1.0.json
codexentrySchema string
//go:embed schemas/commodity-v3.0.json
commoditySchema string
//go:embed schemas/dockingdenied-v1.0.json
dockingdeniedSchema string
//go:embed schemas/dockinggranted-v1.0.json
dockinggrantedSchema string
//go:embed schemas/fcmaterials_capi-v1.0.json
fcmaterials_capiSchema string
//go:embed schemas/fcmaterials_journal-v1.0.json
fcmaterials_journalSchema string
//go:embed schemas/fssallbodiesfound-v1.0.json
fssallbodiesfoundSchema string
//go:embed schemas/fssbodysignals-v1.0.json
fssbodysignalsSchema string
//go:embed schemas/fssdiscoveryscan-v1.0.json
fssdiscoveryscanSchema string
//go:embed schemas/fsssignaldiscovered-v1.0.json
fsssignaldiscoveredSchema string
//go:embed schemas/journal-v1.0.json
journalSchema string
//go:embed schemas/navbeaconscan-v1.0.json
navbeaconscanSchema string
//go:embed schemas/navroute-v1.0.json
navrouteSchema string
//go:embed schemas/outfitting-v2.0.json
outfittingSchema string
//go:embed schemas/scanbarycentre-v1.0.json
scanbarycentreSchema string
//go:embed schemas/shipyard-v2.0.json
shipyardSchema string
)