web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package web serves The Rabbit Hole's HTML frontend: the digest "triage" page, rendered server-side from the same internal/store the JSON API reads. Its templates and static assets are embedded via go:embed (this file), so the whole UI ships inside the single Go binary. internal/server mounts it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Web

type Web struct {
	// contains filtered or unexported fields
}

Web renders the HTML frontend over the same store the JSON API uses.

func New

func New(db *store.Store, cfg *config.Config, addr, cfgPath string, ing *ingest.Manager) *Web

New returns a Web backed by db, using cfg for request defaults. addr is the listen address the serve command bound, surfaced in the page's shell prompt. cfgPath is the config file the viewer reads and displays read-only. ing owns the in-process ingest runs the UI triggers and watches.

func (*Web) Routes

func (s *Web) Routes() http.Handler

Routes returns the web handler: the digest ("feed") page — the landing page, served at both "/" and "/feed" — the Maze day-to-day tools page at "/maze", their htmx mutation routes, and the embedded static assets at "/static/".

Jump to

Keyboard shortcuts

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