Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2020 Changes in this version + type Database struct + DB *gorm.DB + func New(db *gorm.DB) *Database + func (d *Database) ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error) + func (d *Database) ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error) + func (d *Database) Create(c context.Context, asType vocab.Type) error + func (d *Database) Delete(c context.Context, id *url.URL) error + func (d *Database) Exists(c context.Context, id *url.URL) (exists bool, err error) + func (d *Database) Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) + func (d *Database) Following(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) + func (d *Database) Get(c context.Context, id *url.URL) (value vocab.Type, err error) + func (d *Database) GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error) + func (d *Database) GetOutbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error) + func (d *Database) InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error) + func (d *Database) Liked(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) + func (d *Database) Lock(c context.Context, id *url.URL) error + func (d *Database) NewId(c context.Context, t vocab.Type) (id *url.URL, err error) + func (d *Database) OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error) + func (d *Database) Owns(c context.Context, id *url.URL) (owns bool, err error) + func (d *Database) SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error + func (d *Database) SetOutbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error + func (d *Database) Unlock(c context.Context, id *url.URL) error + func (d *Database) Update(c context.Context, asType vocab.Type) error