ui

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 29 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 ui serves a local view where code and its annotations converge on one screen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(repositories *repository.Set) http.Handler

Handler routes the view. Every request re-reads the working tree, so what is rendered is what is on disk rather than what was on disk at startup. Paths are /r/<repository>/f/<file>.

func Serve

func Serve(args []string, stderr io.Writer) error

Serve parses the ui subcommand's own flags and runs the view until the process is interrupted.

func Site added in v0.2.0

func Site(args []string, stderr io.Writer) error

Export writes the same pages koment ui serves, with relative links so the tree survives being hosted under a subpath.

func SnapshotHandler added in v0.3.0

func SnapshotHandler(catalog *serving.Catalog) http.Handler

func SnapshotHandlerAuthorized added in v0.3.0

func SnapshotHandlerAuthorized(catalog *serving.Catalog, access func(*http.Request) map[string]bool) http.Handler

func SnapshotHandlerCapabilities added in v0.3.0

func SnapshotHandlerCapabilities(
	catalog *serving.Catalog, access func(*http.Request) map[string]bool,
	canWrite func(*http.Request, string) bool,
) http.Handler

func SnapshotHandlerFor added in v0.3.0

func SnapshotHandlerFor(catalog *serving.Catalog, access map[string]bool) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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