-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.go
44 lines (35 loc) · 805 Bytes
/
types.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
package resource
type Source struct {
Timezone string `json:"timezone,omitempty"`
Format string `json:"format,omitempty"`
}
type Version struct {
Version string `json:"version"`
}
type Metadata struct {
Name string `json:"name"`
Value string `json:"value"`
}
type CheckRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
}
type InRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
}
type InResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata"`
}
type OutRequest struct {
Source Source `json:"source"`
}
type OutResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata"`
}
var SourceDefaults = Source{
Timezone: "UTC",
Format: "20060102-150405",
}