Replace 'inbox' with 'outbox' when appropriate

As I was ~~wholesale copying~~ using the `database` interface definition
as a reference while creating my Federating implementation I noticed
some instances of a variable being named `inboxIRI` in an outbox method.
This commit is contained in:
Dan Conley 2020-02-28 21:55:38 -05:00
parent de06e3ccdc
commit f502dfd041
No known key found for this signature in database
GPG Key ID: 1CA1D2414F592349
1 changed files with 2 additions and 2 deletions

View File

@ -101,13 +101,13 @@ type Database interface {
// at the specified IRI, for prepending new items.
//
// The library makes this call only after acquiring a lock first.
GetOutbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error)
GetOutbox(c context.Context, outboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error)
// SetOutbox saves the outbox value given from GetOutbox, with new items
// prepended. Note that the new items must not be added as independent
// database entries. Separate calls to Create will do that.
//
// The library makes this call only after acquiring a lock first.
SetOutbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error
SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error
// NewId creates a new IRI id for the provided activity or object. The
// implementation does not need to set the 'id' property and simply
// needs to determine the value.