specui

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 8 Imported by: 1

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

func NewHandler(generator spec.Generator) *Handler

NewHandler creates a new Handler instance with the provided OpenAPI generator.

func (*Handler) Docs

func (h *Handler) Docs() http.Handler

Docs returns an HTTP handler that serves the OpenAPI documentation UI.

func (*Handler) DocsFile

func (h *Handler) DocsFile() http.Handler

DocsFile returns an HTTP handler that serves the OpenAPI schema file.

func (*Handler) DocsFileFunc

func (h *Handler) DocsFileFunc() http.HandlerFunc

DocsFileFunc returns an HTTP handler function that serves the OpenAPI schema file.

func (*Handler) DocsFilePath

func (h *Handler) DocsFilePath() string

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.

func (*Handler) DocsPath

func (h *Handler) DocsPath() string

DocsPath returns the path for the OpenAPI documentation.

Jump to

Keyboard shortcuts

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