Documentation ¶
Overview ¶
Package timeline contains different types of timeline backends.
"sorted-set" uses Redis sorted sets as a backend "stream" uses Redis 5 streams as a backend "null" doesn't remember any items added to it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Items(before, after string) (microsub.Timeline, error) Count() (int, error) AddItem(item microsub.Item) (bool, error) MarkRead(uids []string) error }
Backend specifies the interface for Timeline. It supports everything that is needed for Ekster to implement the channel protocol for Microsub
Click to show internal directories.
Click to hide internal directories.