Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) ServeSpec ¶
func (h *Handler) ServeSpec(w http.ResponseWriter, r *http.Request)
ServeSpec serves the raw OpenAPI spec as YAML.
func (*Handler) ServeUI ¶
func (h *Handler) ServeUI(w http.ResponseWriter, r *http.Request)
ServeUI serves a minimal Swagger UI page pointed at /openapi.yaml. Swagger UI assets are loaded from a CDN rather than vendored, to keep the binary and repo small — acceptable for an internal/dev-facing docs page, not for an air-gapped deployment.
Click to show internal directories.
Click to hide internal directories.