v4cdn

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package v4cdn provides Swagger UI v4 via CDN.

Index

Constants

View Source
const (
	// AssetsBase is a base URL for the assets.
	AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.10.3/"

	// FaviconBase is a base URL for favicons.
	FaviconBase = "https://petstore.swagger.io/"
)

Variables

This section is empty.

Functions

func New added in v1.4.4

func New(title, swaggerJSONPath string, basePath string) http.Handler

New creates HTTP handler for Swagger UI.

Types

type Handler

type Handler = internal.Handler

Handler handle swagger UI request.

func NewHandler

func NewHandler(title, swaggerJSONPath string, basePath string) *Handler

NewHandler creates HTTP handler for Swagger UI.

func NewHandlerWithConfig

func NewHandlerWithConfig(config swgui.Config) *Handler

NewHandlerWithConfig creates HTTP handler for Swagger UI.

Jump to

Keyboard shortcuts

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