v3cdn

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Overview

Package v3cdn provides Swagger UI v3 via CDN.

Index

Constants

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

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