swagger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "5.17.14"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.0

type Config struct {
	// label expansion mode, value in list, full, none
	DocExpansion string

	// whether to enable deep linking
	DeepLinking bool
}

type Router added in v0.0.2

type Router struct {
	Path    string
	Handler func(writer http.ResponseWriter, request *http.Request)
}

func GetSwagger

func GetSwagger(path, title, favicon string, openapiJsonBody []byte, config Config) (routers []Router)

type Swagger

type Swagger struct {
	Title                       string
	Index                       fileInfo
	CssIndex                    fileInfo
	CssSwaggerUI                fileInfo
	JsSwaggerInitializer        fileInfo
	JsSwaggerUiBundle           fileInfo
	JsSwaggerUiStandalonePreset fileInfo
	OpenAPIPath                 string
}

Jump to

Keyboard shortcuts

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