v4cdn

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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.18.1/"

	// 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.

func NewWithConfig added in v1.5.0

func NewWithConfig(config swgui.Config) func(title, swaggerJSONPath string, basePath string) http.Handler

NewWithConfig creates configurable handler constructor.

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