web

package
v0.0.0-...-2f3bbbb Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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