Documentation
¶
Index ¶
- type CommitFeedOptions
- type DB
- func (db *DB) CommitFeed(ctx context.Context, feedStorage feedstorage.Interface, feed *feed.Feed, ...) error
- func (db *DB) CommitUnchanged(ctx context.Context, feed *feed.Feed) error
- func (db *DB) Conn() IConn
- func (db *DB) ExpireFeed(ctx context.Context, u *url.URL) error
- func (db *DB) FetchContentsAsFeed(ctx context.Context, feedStorage feedstorage.Interface, uri *url.URL) (*feed.Feed, error)
- func (db *DB) FetchFeedRow(ctx context.Context, uri *url.URL) (*FeedRow, error)
- func (db *DB) Migrate(ctx context.Context) error
- func (db *DB) Reset(ctx context.Context) error
- type FeedRow
- type IConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitFeedOptions ¶
type CommitFeedOptions struct {
// WebhookPending should be true to set the webhook_pending column to true on update/upsert.
// Since the initial insert is always via HTTP request (not a refresh),
// there's no point sending a webhook on insert.
WebhookPending bool
// WebhookPendingOnInsert is true to set the webhook_pending column true on insert.
// Generally only useful during testing.
WebhookPendingOnInsert bool
}
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CommitFeed ¶
func (db *DB) CommitFeed(ctx context.Context, feedStorage feedstorage.Interface, feed *feed.Feed, opts *CommitFeedOptions) error
func (*DB) CommitUnchanged ¶
func (*DB) ExpireFeed ¶
ExpireFeed sets the timestamps on the row to UNIX 0, so TTLs will all be expired. This should rarely be necessary; it will only happen if something manually changes feed storage.
func (*DB) FetchContentsAsFeed ¶
func (*DB) FetchFeedRow ¶
Click to show internal directories.
Click to hide internal directories.