modulepackage
0.0.0-20220529132534-5e6616a8d55b
Repository: https://github.com/go-ap/handlers.git
Documentation: pkg.go.dev
# Functions
IRIf formats an IRI from an existing IRI and the collection type.
Split returns the base IRI of received i, if i represents an IRI matching collection type t.
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.
# Constants
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
activitystreams.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Typer is the static package variable that determines a collection type for a particular request It can be overloaded from outside packages.
# Interfaces
CollectionTyper allows external packages to tell us which collection the current HTTP request addresses.
MethodValidator is the interface need to be implemented to specify if an HTTP request's method is supported by the implementor object.
RequestValidator is the interface need to be implemented to specify if the whole HTTP request is valid in the context of the implementor object.
# Type aliases
ActivityHandlerFn is the type that we're using to represent handlers that process requests containing an ActivityStreams Activity.
CollectionHandlerFn is the type that we're using to represent handlers that will return ActivityStreams Collection or OrderedCollection objects.
CollectionType.
CollectionTypes.
CtxtKey type alias for the key under which we're storing the Collection Storage in the Request's context.
ItemHandlerFn is the type that we're using to represent handlers that return ActivityStreams objects.