-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
64 lines (52 loc) · 1.46 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package resource
type Source struct {
ApiKey string `json:"api_key"`
}
type SourceControl struct {
Provider string `json:"provider"`
RepositoryUrl string `json:"repository"`
Revision string `json:"revision"`
}
type Metadata struct {
Name string `json:"name"`
Value string `json:"value"`
}
type Version struct {
Build string `json:"build"`
}
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,omitempty"`
}
type OutParams struct {
AppVersion string `json:"app_version"`
ReleaseStage string `json:"release_stage,omitempty"`
SourceControl SourceControl `json:"source_control,omitempty"`
}
type OutRequest struct {
Source Source `json:"source"`
OutParams OutParams `json:"params"`
}
type OutResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata,omitempty"`
}
type BugsnagBuildParams struct {
ApiKey string `json:"apiKey"`
AppVersion string `json:"appVersion"`
ReleaseStage string `json:"releaseStage,omitempty"`
SourceControl SourceControl `json:"sourceControl"`
}
type BugsnagResponse struct {
Status string `json:"string"`
Warnings []string `json:"warnings,omitempty"`
Errors []string `json:"errors,omitempty"`
}