-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.go
52 lines (41 loc) · 1.19 KB
/
domain.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
package main
import cidlink "github.com/ipld/go-ipld-prime/linking/cid"
type UploadRequestResponse struct {
UploadURL string `json:"uploadURL"`
Key string `json:"Key"`
}
type MetaResponse struct {
Status int `json:"status"`
Body string `json:"body"`
}
type MetaRequest struct {
CID string `json:"cid"`
Data string `json:"data"`
Parents []string `json:"parents,omitempty"`
}
type MetaItems struct {
Items []*MetaRequest `json:"items"`
}
type UserProfile struct {
LoginName string `json:"loginName"` // "[email protected]"; for display purposes only (provider is not listed)
DisplayName string `json:"displayName"` // "Alice Smith"
ProfilePicURL string `json:"profilePicURL"`
Node string `json:"node"`
}
type Database struct {
Name string `json:"name"`
Version string `json:"version"`
}
type Application struct {
Name string `json:"name"`
Hostname string `json:"hostname"`
BindAddr string `json:"bindAddr"`
AutoStart bool `json:"autoStart"`
LocalPath string `json:"localPath"`
// these are determined at runtime and not persisted
URL string `json:"url"`
}
type DBMeta struct {
CAR cidlink.Link `json:"car"`
Key string `json:"key"`
}