Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSpecNotFound = errors.New("spec not found")
ErrSpecNotFound error for when spec file not found.
View Source
var HTML string
HTML represents the redoc index.html page
View Source
var JavaScript string
JavaScript represents the redoc standalone javascript
Functions ¶
This section is empty.
Types ¶
type Redoc ¶
type Redoc struct { // <title> HTML tag. Title string `json:"title" yaml:"title"` // Meta description. Description string `json:"description" yaml:"description"` // Represents the URL path in case you use the Redoc.Handler function. DocsPath string `json:"docsPath" yaml:"docsPath"` // Represents the URL where the openapi.yaml/json will be exposed(as static file // in case the relative path doesn't works). SpecPath string `json:"specPath" yaml:"specPath"` SpecFile string `json:"specFile" yaml:"specFile"` FaviconPath string `json:"faviconPath" yaml:"faviconPath"` }
Redoc configuration.
func (*Redoc) Handler ¶
func (r *Redoc) Handler() http.HandlerFunc
Handler sets some defaults and returns a HandlerFunc.
Click to show internal directories.
Click to hide internal directories.