httpmux

package
v0.7.16-dev.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package httpmux names the one thing a package that registers HTTP routes and a package that serves them must agree on: what a mux is. It exists because internal/api cannot import internal/gitsrv — gitsrv's own in-package test builds an api.Server, so the import would be a cycle in the test build — and the api role registers gitsrv's routes on a mux that records what it was given.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux interface {
	Handle(pattern string, handler http.Handler)
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
}

Mux is what a mount registers on. An *http.ServeMux is one; so is a recorder that keeps every pattern it was handed, which is how the authorization completeness gate sees the routes that are not part of the generated OpenAPI surface.

Jump to

Keyboard shortcuts

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