feedatom

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: LGPL-2.1 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStatsObj added in v0.4.0

type BuildStatsObj struct {
	EntriesWritten int
	EntriesDropped int
	NotesTruncated int
	BodyBytes      int
}

BuildStatsObj holds the final Atom feed generation counters.

func Build

func Build(ctx context.Context, store FeedReaderInterface, st StateReaderInterface, key string, feedSize int, linkObj link.Obj) ([]byte, BuildStatsObj, 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.

func (BuildStatsObj) Truncated added in v0.4.0

func (obj BuildStatsObj) Truncated() bool

Truncated reports that the feed dropped entries or truncated notes.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL