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 Level1Items ¶ added in v0.1.4
type Level1Items struct {
TextTransform string `json:"textTransform"`
}
type Redoc ¶
type Redoc struct { DocsPath string SpecPath string SpecFile string Title string Description string Option *RedocOption }
Redoc configuration
func (Redoc) Handler ¶
func (r Redoc) Handler() http.HandlerFunc
Handler sets some defaults and returns a HandlerFunc
type RedocOption ¶ added in v0.1.4
type RedocOption struct {
Theme Theme `json:"theme"`
}
type Sidebar ¶ added in v0.1.4
type Sidebar struct {
Level1Items Level1Items `json:"level1Items"`
}
type Theme ¶ added in v0.1.4
type Theme struct { Sidebar Sidebar `json:"sidebar"` Typography Typography `json:"typography"` }
type Typography ¶ added in v0.1.5
type Typography struct {
FontFamily string `json:"fontFamily"`
}
Click to show internal directories.
Click to hide internal directories.