Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Dependencies ¶
type Factory ¶
--- Factory code block ---
func NewFactory ¶
func NewFactory(mockOn ...component.MockOption) Factory
type Storage ¶
type Storage interface {
component.Component
config.Watcher
// Append stores some feeds.
Append(ctx context.Context, feeds ...*model.Feed) error
// Query retrieves feeds by query options.
// Results are sorted by score (if vector query) and time.
Query(ctx context.Context, query block.QueryOptions) ([]*block.FeedVO, error)
// Exists checks if a feed exists in the storage.
// If hintTime is zero, it only checks the head block.
Exists(ctx context.Context, id uint64, hintTime time.Time) (bool, error)
}
--- Interface code block ---
Click to show internal directories.
Click to hide internal directories.