modulepackage
0.0.0-20240929110425-9d328f7c1fbd
Repository: https://github.com/go-ap/filters.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
After checks the activitypub.Item against a specified "fn" filter function.
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
Before checks the activitypub.Item against a specified "fn" filter function.
CacheKey generates a unique vocab.IRI hash based on its authenticated user and other parameters.
ContentIs checks an activitypub.Object's Content against the "cont" value.
ContentLike checks an activitypub.Object's Content property against the "cont" value.
No description provided by the author
No description provided by the author
No description provided by the author
FilterIt.
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
FromRequest loads the filters we use for generating storage queries from the HTTP request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HasType checks an activitypub.Object's Type property against a series of values.
IDLike.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IRILike.
No description provided by the author
No description provided by the author
LoadCollectionFilters uses specific logic for adding elements to the filters when loading collections from the database.
LoadItemFilters uses specific logic for adding elements to the filters when loading single items from the database.
No description provided by the author
No description provided by the author
No description provided by the author
NameIs checks an activitypub.Object's Name, or, in the case of an activitypub.Actor also the PreferredUsername against the "name" value.
NameLike checks an activitypub.Object's Name, or, in the case of an activitypub.Actor // also the PreferredUsername against the "name" value.
No description provided by the author
No description provided by the author
No description provided by the author
PaginateCollection is a function that populates the received collection.
No description provided by the author
No description provided by the author
No description provided by the author
SameID checks a [vocab.Object]'s ID property against the received iri.
SameInReplyTo checks an activitypub.Object's InReplyTo.
SameIRI checks an activitypub.Object's IRI.
SameURL checks an activitypub.Object's IRI.
No description provided by the author
No description provided by the author
No description provided by the author
SummaryIs checks an activitypub.Object's Summary against the "sum" value.
SummaryLike checks an activitypub.Object's Summary property against the "sum" value.
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
ValidActivityCollection shows if the current ActivityPub end-point type is a valid collection for handling Activities.
ValidCollection shows if the current ActivityPub end-point type is a valid collection.
No description provided by the author
ValidObjectCollection shows if the current ActivityPub end-point type is a valid collection for handling Objects.
No description provided by the author
WithMaxCount is used to limit a collection's items count to the 'max' value.
# Constants
ActivitiesType is a constant that represents the URL path for the local activities collection It is used as the parent for all Activity IDs.
ActorsType is a constant that represents the URL path for the local actors collection.
BlockedType is an internally used collection, to store a list of actors the actor has blocked.
IgnoredType is an internally used collection, to store a list of actors the actor has ignored.
No description provided by the author
ObjectsType is a constant that represents the URL path for the local objects collection It is used as the parent for all non To, non Activity Object IDs.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
ContentEmpty checks an activitypub.Object's Content, *and*, in the case of an activitypub.Actor also the PreferredUsername to be empty.
No description provided by the author
TODO(marius): here we need a better separation between the collections which are exposed in the HTTP API
(activities,actors,objects) and the ones that are internal (blocked,ignored).
TODO(marius): here we need a better separation between the collections which are exposed in the HTTP API
(activities,actors,objects) and the ones that are internal (blocked,ignored).
NameEmpty checks an activitypub.Object's Name, *and*, in the case of an activitypub.Actor also its PreferredUsername to be empty.
No description provided by the author
No description provided by the author
NilID checks if the [vocab.Object]'s ID property matches any of the two magic values that denote an empty value: [vocab.NilID] = "-", or [vocab.EmptyID] = "".
No description provided by the author
NilIRI checks if the activitypub.Item's IRI that matches any of the two magic values that denote an empty value: activitypub.NilID = "-", or activitypub.EmptyID = "".
NotNilID checks if the [vocab.Object]'s ID property is not nil.
NotNilIRI checks if the activitypub.Object's URL property matches any of the two magic values that denote an empty value: activitypub.NilID = "-", or activitypub.EmptyID = "".
SummaryEmpty checks an activitypub.Object's Summary, *and*, in the case of an activitypub.Actor also the PreferredUsername to be empty.
# Structs
Filters
Deprecated: This is functionality cribbed from the original FedBOX filtering mechanism which we want to move away from in favour of using []Check TODO(marius) we can make some small changes so it's not necessary to export this struct.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
FilterableActivity can filter activities.
FilterableCollection can filter collections.
No description provided by the author
FilterableObject can filter objects.
No description provided by the author
KeysetPaginator.
OffsetPaginator.
No description provided by the author