-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.go
More file actions
72 lines (67 loc) · 2.26 KB
/
Copy pathstruct.go
File metadata and controls
72 lines (67 loc) · 2.26 KB
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
package main
type ActivityStream struct {
Context interface{} `json:"@context,omitempty"`
ID string `json:"id,omitempty"`
Type string `json:"type"`
// Follow,Undo,Accept
Actor string `json:"actor,omitempty"`
// Inbox
Object interface{} `json:"object,omitempty"`
objectStr string
objectActivity *ActivityStream
// Outbox
First string `json:"first,omitempty"`
Last string `json:"last,omitempty"`
Next string `json:"next,omitempty"`
Prev string `json:"prev,omitempty"`
PartOf string `json:"partOf,omitempty"`
// Follower,Following,Outbox
TotalItems int `json:"totalItems,omitempty"`
OrderedItems []interface{} `json:"orderedItems,omitempty"`
}
type Resource struct {
Subject string `json:"subject"`
Aliases []string `json:"aliases"`
Links []struct {
Rel string `json:"rel"`
Type string `json:"type,omitempty"`
Href string `json:"href,omitempty"`
Template string `json:"template,omitempty"`
} `json:"links"`
}
type Person struct {
Context []string `json:"@context"`
Type string `json:"type"`
ID string `json:"id"`
Followers string `json:"followers"`
Following string `json:"following"`
URL string `json:"url"`
PreferredUsername string `json:"preferredUsername"`
Name string `json:"name"`
Icon struct {
MediaType string `json:"mediaType"`
Type string `json:"type"`
URL string `json:"url"`
} `json:"icon"`
Summary string `json:"summary"`
Inbox string `json:"inbox"`
Outbox string `json:"outbox"`
}
type Note struct {
Context string `json:"@context"`
ID string `json:"id"`
Type string `json:"type"`
InReplyTo interface{} `json:"inReplyTo"`
Published string `json:"published"`
URL string `json:"url"`
AttributedTo string `json:"attributedTo"`
Content string `json:"content"`
To []string `json:"to"`
Sensitive bool `json:"sensitive"`
Attachment []NoteAttachment `json:"attachment"`
}
type NoteAttachment struct {
Type string `json:"type"`
MediaType string `json:"mediaType"`
URL string `json:"url"`
}