Documentation
¶
Overview ¶
Package docs provides reusable HTTP handlers for serving OpenAPI specs and Redoc UI documentation pages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedocHandler ¶
func RedocHandler(specURL, title string) http.HandlerFunc
RedocHandler returns an http.HandlerFunc that serves a Redoc UI page pointing at the given spec URL.
func SpecHandler ¶
func SpecHandler(spec []byte) http.HandlerFunc
SpecHandler returns an http.HandlerFunc that serves a raw OpenAPI JSON spec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.