internal

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package internal provides internal handler implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexTpl

func IndexTpl(assetsBase, faviconBase string, cfg swgui.Config) string

IndexTpl creates page template.

Types

type Handler

type Handler struct {
	swgui.Config

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

Handler handles swagger UI request.

func NewHandlerWithConfig

func NewHandlerWithConfig(config swgui.Config, assetsBase, faviconBase string, staticServer http.Handler) *Handler

NewHandlerWithConfig returns a HTTP handler for swagger UI.

func (*Handler) ServeHTTP

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

ServeHTTP implements http.Handler interface to handle swagger UI request.

Jump to

Keyboard shortcuts

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