Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Type string `json:"type"`
URL string `json:"url"`
MediaType string `json:"mediaType"`
}
Attachment represents an attachment to an ActivityPub object.
type InstanceInfo ¶ added in v1.2.0
type InstanceInfo struct {
URI string `json:"uri"`
Title string `json:"title"`
Description string `json:"description"`
}
InstanceInfo represents instance-specific information response.
type NodeInfo ¶ added in v1.2.0
type NodeInfo struct {
Links []NodeInfoLink `json:"links"`
}
NodeInfo represents the node information response structure
type NodeInfoDetails ¶ added in v1.2.0
type NodeInfoDetails struct {
Version string `json:"version"`
Software SoftwareInfo `json:"software"`
Protocols []string `json:"protocols"`
Services ServicesInfo `json:"services"`
OpenRegistrations bool `json:"openRegistrations"`
Usage NodeUsageInfo `json:"usage"`
}
NodeInfoDetails represents detailed node information.
type NodeInfoLink ¶ added in v1.2.0
NodeInfoLink represents a link in NodeInfo.
type NodeUsageInfo ¶ added in v1.2.0
type NodeUsageInfo struct {
Users UsersInfo `json:"users"`
}
NodeUsageInfo contains usage statistics for a node.
type Note ¶
type Note struct {
ID string `json:"id"`
Type string `json:"type"`
Content string `json:"content"`
Published string `json:"published,omitempty"`
To []string `json:"to,omitempty"`
CC []string `json:"cc,omitempty"`
Tag []Tag `json:"tag,omitempty"`
}
Note represents a note object in ActivityPub.
type Object ¶
type Object struct {
Context interface{} `json:"@context,omitempty"`
ID string `json:"id"`
Type string `json:"type"`
Actor string `json:"actor,omitempty"`
Object interface{} `json:"object,omitempty"`
Target interface{} `json:"target,omitempty"`
Result interface{} `json:"result,omitempty"`
Origin interface{} `json:"origin,omitempty"`
Instrument interface{} `json:"instrument,omitempty"`
Published string `json:"published,omitempty"`
To []string `json:"to,omitempty"`
CC []string `json:"cc,omitempty"`
Bto []string `json:"bto,omitempty"`
Bcc []string `json:"bcc,omitempty"`
Attachment interface{} `json:"attachment,omitempty"`
Tag interface{} `json:"tag,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
Object represents a general ActivityPub object or activity.
type ServicesInfo ¶ added in v1.2.0
ServicesInfo represents the inbound and outbound services of a node.
type SoftwareInfo ¶ added in v1.2.0
SoftwareInfo provides software details in NodeInfo.
type StatusResponse ¶
type StatusResponse struct {
Object struct {
Published time.Time `json:"published"`
Content string `json:"content"`
Attachment []Attachment `json:"attachment"`
Tag []Tag `json:"tag"`
} `json:"object"`
}
StatusResponse represents a status response from an ActivityPub server.
type StatusResult ¶
type StatusResult struct {
Content string
Timestamp string
Attachments []Attachment
Tags []Tag
}
StatusResult represents the result of a status request.