Skip to content

Commit

Permalink
Merge pull request go-fed#153 from superseriousbusiness/InboxForActor
Browse files Browse the repository at this point in the history
Inbox for actor
  • Loading branch information
cjslep authored Jan 19, 2022
2 parents d2deaac + bffb780 commit 1438977
Show file tree
Hide file tree
Showing 4 changed files with 245 additions and 165 deletions.
7 changes: 7 additions & 0 deletions pub/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ type Database interface {
//
// The library makes this call only after acquiring a lock first.
OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error)
// InboxForActor fetches the inbox corresponding to the given actorIRI.
//
// It is acceptable to just return nil for the inboxIRI. In this case, the library will
// attempt to resolve the inbox of the actor by remote dereferencing instead.
//
// The library makes this call only after acquiring a lock first.
InboxForActor(c context.Context, actorIRI *url.URL) (inboxIRI *url.URL, err error)
// Exists returns true if the database has an entry for the specified
// id. It may not be owned by this application instance.
//
Expand Down
Loading

0 comments on commit 1438977

Please sign in to comment.