Documentation ¶ Index ¶ func IndexTpl(assetBase, faviconBase string, cfg *config.RapiDoc) string type Data type Handler func NewHandler(config *config.SpecUI) *Handler func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IndexTpl ¶ func IndexTpl(assetBase, faviconBase string, cfg *config.RapiDoc) string Types ¶ type Data ¶ type Data struct { Title string `json:"title"` OpenAPIURL string `json:"openapiURL"` Logo string `json:"logo"` } type Handler ¶ type Handler struct { Data // contains filtered or unexported fields } 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) Source Files ¶ View all Source files handler.goindex.tpl.go Click to show internal directories. Click to hide internal directories.