Documentation
¶
Overview ¶
Package web provides the HTTP handler, including the API and static resources for the web UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(p *HandlerParams) *handler
NewHandler creates a new HTTP handler for the entire SPA of the feed reader, including static files and the API.
Types ¶
type FeedLister ¶
type FeedLister interface {
Summary() []*feed.FeedSummary
FeedSummary(uid string) *feed.FeedSummary
FeedItem(fuid, iuid string) *feed.ItemSummary
MarkRead(fuid, iuid string, before int64) bool
}
FeedLister is the interface that the API server uses to interact with a list of feeds.
type HandlerParams ¶
type HandlerParams struct {
FeedList FeedLister
AccessToken string
SessionKey []byte
}
HandlerParams contains the parameters for creating a new API server.
Click to show internal directories.
Click to hide internal directories.