Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// Store stores the feed bytes in storage.
Store(ctx context.Context, feedId int64, body []byte) error
// Fetch fetches the feed from storage and returns the bytes.
// If the feed is not stored, return ErrNotFound as the error.
Fetch(ctx context.Context, feedId int64) ([]byte, error)
}
Click to show internal directories.
Click to hide internal directories.