Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13894471
data.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
941 B
Subscribers
None
data.go
View Options
package
activitystreams
type
(
BaseObject
struct
{
Context
[]
string
`json:"@context"`
Type
string
`json:"type"`
ID
string
`json:"id"`
}
PublicKey
struct
{
ID
string
`json:"id"`
Owner
string
`json:"owner"`
PublicKeyPEM
string
`json:"publicKeyPem"`
}
Image
struct
{
Type
string
`json:"type"`
MediaType
string
`json:"mediaType"`
URL
string
`json:"url"`
}
)
type
OrderedCollection
struct
{
BaseObject
TotalItems
int
`json:"totalItems"`
First
string
`json:"first"`
Last
string
`json:"last,omitempty"`
}
func
NewOrderedCollection
(
accountRoot
string
,
items
int
)
*
OrderedCollection
{
oc
:=
OrderedCollection
{
BaseObject
:
BaseObject
{
Context
:
[]
string
{
"https://www.w3.org/ns/activitystreams"
,
},
ID
:
accountRoot
+
"/outbox"
,
Type
:
"OrderedCollection"
,
},
First
:
accountRoot
+
"/outbox?page=1"
,
TotalItems
:
items
,
}
return
&
oc
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 13, 12:42 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3653809
Attached To
rWC Write.as Web Core
Event Timeline
Log In to Comment