v3

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: 12 Imported by: 9

Documentation

Overview

Package v3 provides embedded Swagger UI v3 assets.

Index

Constants

This section is empty.

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 handles 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 returns a HTTP handler for swagger UI.

Directories

Path Synopsis
Package main generates legacy assets.
Package main generates legacy assets.
Package static contains files to embed.
Package static contains files to embed.

Jump to

Keyboard shortcuts

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