Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(ctx context.Context, store FeedReaderInterface, st StateReaderInterface, key string, feedSize int, linkObj link.Obj) ([]byte, error)
Build creates an Atom document from publish history. Empty key means the global feed; feedSize caps events and RAM use; unknown empty per-key feeds return serr.ErrNotFound.
Types ¶
type FeedReaderInterface ¶
type FeedReaderInterface interface {
ListPublishFeed(ctx context.Context, key string, limit int) ([]core.FeedEventObj, error)
}
FeedReaderInterface reads publish history for feeds; an empty key means the global feed.
type StateReaderInterface ¶
type StateReaderInterface interface {
KeyState(key string) (state.KeyStateObj, bool)
}
StateReaderInterface reports key existence for empty per-key feed 404 handling.
Click to show internal directories.
Click to hide internal directories.