Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeAccept = "Accept" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept TypeAnnounce = "Announce" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce TypeCreate = "Create" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create TypeInvite = "Invite" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite TypeJoin = "Join" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join TypeLeave = "Leave" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave TypeReject = "Reject" // https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject )
Activities
View Source
const (
TypeConference = "Conference"
)
Objects
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accept ¶
type Accept struct {
Type json.Const[string] `json:"type" json.value:"Accept"`
Actor string `json:"actor,omitempty"` // who did the accepting
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // the thing that is being accepted
Summary string `json:"summary,omitempty"` // for preview
}
type Announce ¶
type Announce struct {
Type json.Const[string] `json:"type" json.value:"Announce"`
Actor string `json:"actor,omitempty"` // who announced it
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"`
Summary string `json:"summary,omitempty"` // for preview
}
type Conference ¶
type Conference struct {
Type json.Const[string] `json:"type" json.value:"Conference"`
Actor string `json:"actor,omitempty"`
Closed string `json:"closed,omitempty"`
EndPoints map[string]string `json:"endpoints,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Origin []string `json:"origin,omitempty"`
StartTime string `json:"startTime,omitempty"`
Summary string `json:"summary,omitempty"`
To []string `json:"to,omitempty"`
}
Conference is an 'Object' of 'type' 'Conference'.
func (Conference) String ¶
func (receiver Conference) String() string
type Create ¶
type Create struct {
Type json.Const[string] `json:"type" json.value:"Create"`
Actor string `json:"actor,omitempty"` // who did the creating (i.e., the creater)
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // what was created
Summary string `json:"summary,omitempty"` // for preview
}
type Hush ¶
type Invite ¶
type Invite struct {
Type json.Const[string] `json:"type" json.value:"Invite"`
Actor string `json:"actor,omitempty"` // who did the inviting (i.e., the inviter)
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // what the inviter invited the invitee to
Summary string `json:"summary,omitempty"` // for preview
Target string `json:"target,omitempty"` // who was invite (i.e., the invitee)
}
type Join ¶
type Join struct {
Type json.Const[string] `json:"type" json.value:"Join"`
Actor string `json:"actor,omitempty"` // who joined
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // what was joined
Summary string `json:"summary,omitempty"` // for preview
}
type Leave ¶
type Leave struct {
Type json.Const[string] `json:"type" json.value:"Leave"`
Actor string `json:"actor,omitempty"` // who joined
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // what was joined
Summary string `json:"summary,omitempty"` // for preview
}
type Reject ¶
type Reject struct {
Type json.Const[string] `json:"type" json.value:"Reject"`
Actor string `json:"actor,omitempty"` // who did the rejecting
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // for preview
Object any `json:"object,omitempty"` // the thing that is being rejected
Summary string `json:"summary,omitempty"` // for preview
}
Click to show internal directories.
Click to hide internal directories.