stoplightelements

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexTpl

func IndexTpl(assetBase, faviconBase string, specCfg *config.SpecUI) string

Types

type Data

type Data struct {
	Title          string               `json:"title"`
	OpenAPIURL     string               `json:"openapiURL"`
	HideExport     bool                 `json:"hideExport"`
	HideSchemas    bool                 `json:"hideSchemas"`
	HideTryIt      bool                 `json:"hideTryIt"`
	HideTryItPanel bool                 `json:"hideTryItPanel"`
	Layout         config.ElementLayout `json:"layout"`
	Router         config.ElementRouter `json:"router"`
}

type Handler

type Handler struct {
	Data

	ConfigJson template.JS
	// contains filtered or unexported fields
}

Handler handles swagger UI request.

func NewHandler

func NewHandler(config *config.SpecUI) *Handler

NewHandler returns a HTTP handler for swagger UI.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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