AcceptNew initializes an Accept activity.
ActivityNew initializes a basic activity.
ActorNew initializes an CanReceiveActivities type actor.
AddNew initializes an Add activity.
AnnounceNew initializes an Announce activity.
ApplicationNew initializes an Application type actor.
ArriveNew initializes an Arrive activity.
BlockNew initializes a Block activity.
CleanRecipients checks if the "it" Item has recipients and cleans them if it does.
CollectionNew initializes a new Collection.
CollectionNew initializes a new CollectionPage.
No description provided by the author
No description provided by the author
No description provided by the author
CopyItemProperties delegates to the correct per type functions for copying properties between matching Activity Objects.
CopyObjectProperties updates the "old" object properties with the "new's" Including ID and Type.
No description provided by the author
No description provided by the author
CreateNew initializes a Create activity.
No description provided by the author
No description provided by the author
DeleteNew initializes a Delete activity.
DerefItem dereferences.
DislikeNew initializes a Dislike activity.
No description provided by the author
FlagNew initializes a Flag activity.
Flatten checks if Item can be flattened to an IRI or array of IRIs and returns it if so.
FlattenActivityProperties flattens the Activity's properties from Object type to IRI.
FlattenActorProperties flattens the Actor's properties from Object types to IRI.
FlattenCollection flattens a Collection's objects to their respective IRIs.
FlattenIntransitiveActivityProperties flattens the Activity's properties from Object type to IRI.
FlattenItemCollection flattens an Item Collection to their respective IRIs.
FlattenObjectProperties flattens the Object's properties from Object types to IRI.
FlattenOrderedCollection flattens an OrderedCollection's objects to their respective IRIs.
FlattenProperties flattens the Item's properties from Object types to IRI.
FlattenToIRI checks if Item can be flatten to an IRI and returns it if so.
FollowNew initializes a Follow activity.
GetAPSource.
No description provided by the author
No description provided by the author
No description provided by the author
GroupNew initializes a Group type actor.
IgnoreNew initializes an Ignore activity.
IntransitiveActivityNew initializes a intransitive activity.
InviteNew initializes an Invite activity.
IRIf formats an IRI from an existing IRI and the CollectionPath type.
IsIRI returns if the current Item interface holds an IRI.
IsIRIs returns if the current Item interface holds an IRI slice.
IsItemCollection returns if the current Item interface holds a Collection.
IsLink returns if the current Item interface holds a Link.
IsNil checks if the object matching an ObjectOrLink interface is nil.
IsObject returns if the current Item interface holds an Object.
ItemCollectionDeduplication normalizes the received arguments lists into a single unified one.
ItemOrderTimestamp is used for ordering a ItemCollection slice using the slice.Sort function It orders i1 and i2 based on their Published and Updated timestamps, whichever is later.
ItemsEqual checks if it and with Items are equal.
JoinNew initializes a Join activity.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LeaveNew initializes a Leave activity.
LikeNew initializes a Like activity.
LinkNew initializes a new Link.
ListenNew initializes a Listen activity.
MarshalJSON represents just a wrapper for the jsonld.Marshal function.
MentionNew initializes a new Mention.
MoveNew initializes a Move activity.
No description provided by the author
No description provided by the author
NotEmpty tells us if a Item interface value has a non nil value for various types that implement.
ObjectNew initializes a new Object.
OfferNew initializes an Offer activity.
On handles in a generic way the call to fn(*T) if the "it" Item can be asserted to one of the Objects type.
OnActivity calls function fn on it Item if it can be asserted to type *Activity
This function should be called if trying to access the Activity specific properties like "object", for the other properties OnObject, or OnIntransitiveActivity should be used instead.
OnActor calls function fn on it Item if it can be asserted to type *Actor
This function should be called if trying to access the Actor specific properties like "preferredName", "publicKey", etc.
OnCollection calls function fn on it Item if it can be asserted to type *Collection
This function should be called if trying to access the Collection specific properties like "totalItems", "items", etc.
OnCollectionIntf calls function fn on it Item if it can be asserted to a type that implements the CollectionInterface
This function should be called if Item represents a collection of ActivityPub objects.
OnCollectionPage calls function fn on it Item if it can be asserted to type *CollectionPage
This function should be called if trying to access the CollectionPage specific properties like "partOf", "next", "perv".
OnIntransitiveActivity calls function fn on it Item if it can be asserted to type *IntransitiveActivity
This function should be called if trying to access the IntransitiveActivity specific properties like "actor", for the other properties OnObject should be used instead.
OnIRIs calls function fn on it Item if it can be asserted to type IRIs
It should be used when Item represents an IRI slice.
OnItem runs function "fn" on the Item "it", with the benefit of destructuring "it" to individual items if it's actually an ItemCollection or an object holding an ItemCollection
It is expected that the caller handles the logic of dealing with different Item implementations internally in "fn".
OnItemCollection calls function fn on it Item if it can be asserted to type ItemCollection
It should be used when Item represents an Item collection and it's usually used as a way to wrap functionality for other functions that will be called on each item in the collection.
OnLink calls function fn on it Item if it can be asserted to type *Link
This function should be safe to use for all types with a structure compatible with the Link type.
OnObject calls function fn on it Item if it can be asserted to type *Object
This function should be safe to be called for all types with a structure compatible to the Object type.
OnOrderedCollection calls function fn on it Item if it can be asserted to type *OrderedCollection
This function should be called if trying to access the Collection specific properties like "totalItems", "orderedItems", etc.
OnOrderedCollectionPage calls function fn on it Item if it can be asserted to type *OrderedCollectionPage
This function should be called if trying to access the OrderedCollectionPage specific properties like "partOf", "next", "perv".
OnPlace calls function fn on it Item if it can be asserted to type *Place
This function should be called if trying to access the Place specific properties like "accuracy", "altitude", "latitude", "longitude", "radius", or "units".
OnProfile calls function fn on it Item if it can be asserted to type *Profile
This function should be called if trying to access the Profile specific properties like "describes".
OnQuestion calls function fn on it Item if it can be asserted to type Question
This function should be called if trying to access the Questions specific properties like "anyOf", "oneOf", "closed", etc.
OnRelationship calls function fn on it Item if it can be asserted to type *Relationship
This function should be called if trying to access the Relationship specific properties like "subject", "object", or "relationship".
OnTombstone calls function fn on it Item if it can be asserted to type *Tombstone
This function should be called if trying to access the Tombstone specific properties like "formerType" or "deleted".
OrderedCollectionNew initializes a new OrderedCollection.
OrderedCollectionPageNew initializes a new OrderedCollectionPage.
OrganizationNew initializes an Organization type actor.
PersonNew initializes a Person type actor.
No description provided by the author
QuestionNew initializes a Question activity.
ReadNew initializes a Read activity.
RejectNew initializes a Reject activity.
RemoveNew initializes a Remove activity.
ServiceNew initializes a Service type actor.
Split returns the base IRI of received i, if i represents an IRI matching CollectionPath type t.
No description provided by the author
TentativeAcceptNew initializes a TentativeAccept activity.
TentativeRejectNew initializes a TentativeReject activity.
No description provided by the author
ToActivity.
ToActor.
ToCollection.
ToCollectionPage.
ToIntransitiveActivity tries to convert it Item to an IntransitiveActivity object.
ToIRIs.
ToItemCollection returns the item collection contained as part of OrderedCollection, OrderedCollectionPage, Collection and CollectionPage.
ToLink returns a Link pointer to the data in the current Item.
ToObject returns an Object pointer to the data in the current Item It relies on the fact that all the types in this package have a data layout compatible with Object.
ToOrderedCollection.
ToOrderedCollectionPage.
ToPlace.
ToProfile tries to convert the "it" Item to a Profile object.
ToQuestion tries to convert the it Item to a Question object.
ToRelationship tries to convert the "it" Item to a Relationship object.
ToTombstone.
TravelNew initializes a Travel activity.
UndoNew initializes an Undo activity.
UnmarshalJSON tries to detect the type of the object in the json data and then outputs a matching ActivityStreams object, if possible.
UpdateNew initializes an Update activity.
UpdatePersonProperties.
ValidActivityCollection shows if the current ActivityPub end-point type is a valid one for handling Activities.
No description provided by the author
No description provided by the author
ValidActivityCollection shows if the current ActivityPub end-point type is a valid one for handling Objects.
ViewNew initializes a View activity.