-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.go
59 lines (50 loc) · 1.5 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
// Copyright (c) 2024, s0up and the autobrr contributors.
// SPDX-License-Identifier: GPL-2.0-or-later
package types
import "time"
type ServiceHealth struct {
Status string `json:"status"`
ResponseTime int64 `json:"responseTime"`
LastChecked time.Time `json:"lastChecked"`
Message string `json:"message"`
UpdateAvailable bool `json:"updateAvailable"`
Version string `json:"version,omitempty"`
}
type ServiceConfigResponse struct {
InstanceID string `json:"instanceId"`
DisplayName string `json:"displayName"`
URL string `json:"url"`
APIKey string `json:"apiKey,omitempty"`
}
type WebhookProxyRequest struct {
TargetUrl string `json:"targetUrl"`
APIKey string `json:"apiKey"`
}
type UpdateResponse struct {
Version string `json:"version"`
Branch string `json:"branch"`
ReleaseDate time.Time `json:"releaseDate"`
FileName string `json:"fileName"`
URL string `json:"url"`
Installed bool `json:"installed"`
InstalledOn time.Time `json:"installedOn"`
Installable bool `json:"installable"`
Latest bool `json:"latest"`
Changes Changes `json:"changes"`
Hash string `json:"hash"`
}
type Changes struct {
New []string `json:"new"`
Fixed []string `json:"fixed"`
}
type FindUserParams struct {
ID int64
Username string
Email string
}
type FindServiceParams struct {
InstanceID string
InstancePrefix string
URL string
AccessURL string
}