Documentation
¶
Index ¶
Constants ¶
View Source
const Filename = "openapi.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides methods to serve OpenAPI documentation and files.
func NewHandler ¶
NewHandler creates a new Handler instance with the provided OpenAPI generator.
func (*Handler) DocsFileFunc ¶
func (h *Handler) DocsFileFunc() http.HandlerFunc
DocsFileFunc returns an HTTP handler function that serves the OpenAPI schema file.
func (*Handler) DocsFilePath ¶
DocsFilePath returns the path for the OpenAPI schema file.
func (*Handler) DocsFunc ¶
func (h *Handler) DocsFunc() http.HandlerFunc
DocsFunc returns an HTTP handler function that serves the OpenAPI documentation UI.
Click to show internal directories.
Click to hide internal directories.