Documentation ¶
Index ¶
- Constants
- func ListEndpointHandler(doc *openapi3.T, extras ...Endpoint) http.HandlerFunc
- func New(doc *openapi3.T, basePath string, info *info.Info, mdtext string) http.Handler
- func OpenAPIDocHandler(doc *openapi3.T) http.HandlerFunc
- func RedocHandler(doc *openapi3.T, basePath string) http.HandlerFunc
- func SwaggerUIHandler(doc *openapi3.T, basePath string) http.HandlerFunc
- type Endpoint
- type MDDocHandler
Constants ¶
View Source
const MDDOC_TEMPLATE = `` /* 2871-byte string literal not displayed */
View Source
const REDOC_TEMPLATE = `` /* 566-byte string literal not displayed */
View Source
const SWAGGER_UI_TEMPLATE = `` /* 787-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ListEndpointHandler ¶
func ListEndpointHandler(doc *openapi3.T, extras ...Endpoint) http.HandlerFunc
func OpenAPIDocHandler ¶
func OpenAPIDocHandler(doc *openapi3.T) http.HandlerFunc
func RedocHandler ¶
func RedocHandler(doc *openapi3.T, basePath string) http.HandlerFunc
func SwaggerUIHandler ¶
func SwaggerUIHandler(doc *openapi3.T, basePath string) http.HandlerFunc
Types ¶
type Endpoint ¶
type MDDocHandler ¶ added in v0.3.0
type MDDocHandler struct {
// contains filtered or unexported fields
}
func NewMdDocHandler ¶ added in v0.3.0
func NewMdDocHandler(doc *openapi3.T, info *info.Info) *MDDocHandler
func (*MDDocHandler) HTML ¶ added in v0.3.0
func (h *MDDocHandler) HTML(w http.ResponseWriter, r *http.Request)
func (*MDDocHandler) Text ¶ added in v0.3.0
func (h *MDDocHandler) Text(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.