Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
ErrNotFound is returned when the object is not found or the iterator has reached the end.
Functions ¶
func ReadReferences ¶
func ReadReferences(it ReferenceIterator, maxItems int) ([]*url.URL, error)
ReadReferences reads the references from the given iterator up to a maximum number specified by maxItems. If maxItems <= 0 then all references are read.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements an ActivityPub client which retrieves ActivityPub objects (such as actors, activities, and collections) from remote sources.
func (*Client) GetPublicKey ¶
GetPublicKey retrieves the public key at the given IRI.
func (*Client) GetReferences ¶
func (c *Client) GetReferences(iri *url.URL) (ReferenceIterator, error)
GetReferences returns an iterator that reads all references at the given IRI. The IRI either resolves to an ActivityPub actor, collection or ordered collection.
Click to show internal directories.
Click to hide internal directories.