Documentation
¶
Overview ¶
Package ui serves a local view where code and its annotations converge on one screen.
Index ¶
- func Handler(repositories *repository.Set) http.Handler
- func Serve(args []string, stderr io.Writer) error
- func Site(args []string, stderr io.Writer) error
- func SnapshotHandler(catalog *serving.Catalog) http.Handler
- func SnapshotHandlerAuthorized(catalog *serving.Catalog, access func(*http.Request) map[string]bool) http.Handler
- func SnapshotHandlerCapabilities(catalog *serving.Catalog, access func(*http.Request) map[string]bool, ...) http.Handler
- func SnapshotHandlerFor(catalog *serving.Catalog, access map[string]bool) http.Handler
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 ¶
Serve parses the ui subcommand's own flags and runs the view until the process is interrupted.
func Site ¶ added in v0.2.0
Export writes the same pages koment ui serves, with relative links so the tree survives being hosted under a subpath.
func SnapshotHandlerAuthorized ¶ added in v0.3.0
func SnapshotHandlerCapabilities ¶ added in v0.3.0
Types ¶
This section is empty.