Documentation ¶
Index ¶
- func AddFollow(follow apmodels.ActivityPubActor, approved bool) error
- func AddToOutbox(iri string, itemData []byte, typeString string, isLiveNotification bool) error
- func ApprovePreviousFollowRequest(iri string) error
- func BlockOrRejectFollower(iri string) error
- func GetBlockedAndRejectedFollowers() ([]models.Follower, error)
- func GetFederationFollowers(limit int, offset int) ([]models.Follower, int, error)
- func GetFollower(iri string) (*apmodels.ActivityPubActor, error)
- func GetFollowerCount() (int64, error)
- func GetInboundActivities(limit int, offset int) ([]models.FederatedActivity, int, error)
- func GetLocalPostCount() (int64, error)
- func GetObjectByIRI(iri string) (string, bool, time.Time, error)
- func GetOutbox(limit int, offset int) (vocab.ActivityStreamsOrderedCollection, error)
- func GetOutboxPostCount() (int64, error)
- func GetPendingFollowRequests() ([]models.Follower, error)
- func HasPreviouslyHandledInboundActivity(iri string, actorIRI string, eventType string) (bool, error)
- func RemoveFollow(unfollow apmodels.ActivityPubActor) error
- func SaveInboundFediverseActivity(objectIRI string, actorIRI string, eventType string, timestamp time.Time) error
- func Setup(datastore *data.Datastore)
- func UpdateFollower(actorIRI string, inbox string, name string, username string, image string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFollow ¶
func AddFollow(follow apmodels.ActivityPubActor, approved bool) error
AddFollow will save a follow to the datastore.
func AddToOutbox ¶
AddToOutbox will store a single payload to the persistence layer.
func ApprovePreviousFollowRequest ¶
ApprovePreviousFollowRequest will approve a follow request.
func BlockOrRejectFollower ¶
BlockOrRejectFollower will block an existing follower or reject a follow request.
func GetBlockedAndRejectedFollowers ¶
GetBlockedAndRejectedFollowers will return blocked and rejected followers.
func GetFederationFollowers ¶
GetFederationFollowers will return a slice of the followers we keep track of locally.
func GetFollower ¶
func GetFollower(iri string) (*apmodels.ActivityPubActor, error)
GetFollower will return a single follower/request given an IRI.
func GetFollowerCount ¶
GetFollowerCount will return the number of followers we're keeping track of.
func GetInboundActivities ¶
GetInboundActivities will return a collection of saved, federated activities limited and offset by the values provided to support pagination.
func GetLocalPostCount ¶
GetLocalPostCount will return the number of posts existing locally.
func GetObjectByIRI ¶
GetObjectByIRI will return a string representation of a single object by the IRI.
func GetOutbox ¶
func GetOutbox(limit int, offset int) (vocab.ActivityStreamsOrderedCollection, error)
GetOutbox will return an instance of the outbox populated by stored items.
func GetOutboxPostCount ¶
GetOutboxPostCount will return the number of posts in the outbox.
func GetPendingFollowRequests ¶
GetPendingFollowRequests will return pending follow requests.
func HasPreviouslyHandledInboundActivity ¶
func HasPreviouslyHandledInboundActivity(iri string, actorIRI string, eventType string) (bool, error)
HasPreviouslyHandledInboundActivity will return if we have previously handled an inbound federated activity.
func RemoveFollow ¶
func RemoveFollow(unfollow apmodels.ActivityPubActor) error
RemoveFollow will remove a follow from the datastore.
func SaveInboundFediverseActivity ¶
func SaveInboundFediverseActivity(objectIRI string, actorIRI string, eventType string, timestamp time.Time) error
SaveInboundFediverseActivity will save an event to the ap_inbound_activities table.
Types ¶
This section is empty.