Documentation
¶
Overview ¶
Package inbox creates and processes activities.
Incoming activities are received and queued by [fed.Listener].
Index ¶
- Variables
- type FeedUpdater
- type Inbox
- func (inbox *Inbox) Accept(ctx context.Context, followed *ap.Actor, key httpsig.Key, ...) error
- func (inbox *Inbox) Announce(ctx context.Context, tx *sql.Tx, actor *ap.Actor, key httpsig.Key, ...) error
- func (inbox *Inbox) Create(ctx context.Context, cfg *cfg.Config, post *ap.Object, author *ap.Actor, ...) error
- func (inbox *Inbox) Delete(ctx context.Context, actor *ap.Actor, key httpsig.Key, note *ap.Object) error
- func (inbox *Inbox) Follow(ctx context.Context, follower *ap.Actor, key httpsig.Key, followed string) error
- func (inbox *Inbox) Move(ctx context.Context, from *ap.Actor, key httpsig.Key, to string) error
- func (inbox *Inbox) NewID(actorID, prefix string) (string, error)
- func (inbox *Inbox) ProcessActivity(ctx context.Context, tx *sql.Tx, path sql.NullString, sender *ap.Actor, ...) error
- func (inbox *Inbox) Reject(ctx context.Context, followed *ap.Actor, key httpsig.Key, ...) error
- func (inbox *Inbox) Undo(ctx context.Context, actor *ap.Actor, key httpsig.Key, activity *ap.Activity) error
- func (inbox *Inbox) Unfollow(ctx context.Context, follower *ap.Actor, key httpsig.Key, ...) error
- func (inbox *Inbox) UpdateActor(ctx context.Context, actor *ap.Actor, key httpsig.Key) error
- func (inbox *Inbox) UpdateActorTx(ctx context.Context, tx *sql.Tx, actor *ap.Actor, key httpsig.Key) error
- func (inbox *Inbox) UpdateNote(ctx context.Context, actor *ap.Actor, key httpsig.Key, note *ap.Object) error
- type Queue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrActivityTooNested = errors.New("exceeded activity depth limit")
View Source
var ErrDeliveryQueueFull = errors.New("delivery queue is full")
Functions ¶
This section is empty.
Types ¶
type FeedUpdater ¶
type Inbox ¶ added in v0.19.0
func (*Inbox) Accept ¶ added in v0.19.0
func (inbox *Inbox) Accept(ctx context.Context, followed *ap.Actor, key httpsig.Key, follower, followID string, tx *sql.Tx) error
Accept queues an Accept activity for delivery.
func (*Inbox) Announce ¶ added in v0.19.0
func (inbox *Inbox) Announce(ctx context.Context, tx *sql.Tx, actor *ap.Actor, key httpsig.Key, note *ap.Object) error
Announce queues an Announce activity for delivery.
func (*Inbox) Create ¶ added in v0.19.0
func (inbox *Inbox) Create(ctx context.Context, cfg *cfg.Config, post *ap.Object, author *ap.Actor, key httpsig.Key) error
Create queues a Create activity for delivery.
func (*Inbox) Delete ¶ added in v0.19.0
func (inbox *Inbox) Delete(ctx context.Context, actor *ap.Actor, key httpsig.Key, note *ap.Object) error
Delete queues a Delete activity for delivery.
func (*Inbox) Follow ¶ added in v0.19.0
func (inbox *Inbox) Follow(ctx context.Context, follower *ap.Actor, key httpsig.Key, followed string) error
Follow queues a Follow activity for delivery.
func (*Inbox) ProcessActivity ¶ added in v0.19.0
func (*Inbox) Reject ¶ added in v0.19.0
func (inbox *Inbox) Reject(ctx context.Context, followed *ap.Actor, key httpsig.Key, follower, followID string, tx *sql.Tx) error
Reject queues a Reject activity for delivery.
func (*Inbox) Undo ¶ added in v0.19.0
func (inbox *Inbox) Undo(ctx context.Context, actor *ap.Actor, key httpsig.Key, activity *ap.Activity) error
Undo queues an Undo activity for delivery.
func (*Inbox) Unfollow ¶ added in v0.19.0
func (inbox *Inbox) Unfollow(ctx context.Context, follower *ap.Actor, key httpsig.Key, followed, followID string) error
Unfollow queues an Undo activity for delivery.
func (*Inbox) UpdateActor ¶ added in v0.19.0
UpdateActor queues an Update activity for delivery.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.