handler

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSwaggerUIBadServiceUrl = errors.New("bad service url")
)

Functions

func NewSwaggerUIHandler

func NewSwaggerUIHandler(opt SwaggerOptions) server.HttpHandler

NewSwaggerUIHandler Обработчик для отображения Swagger UI по адресу /swagger/

Types

type SwaggerOptions

type SwaggerOptions struct {
	// Название сервиса, будет видно в UI
	ServiceName string

	// Публичный адрес сервиса для выполнения запросов из UI
	ServiceUrl string

	// Путь к OpenAPI файлу в формате JSON
	OpenAPIFileJson string
}

Jump to

Keyboard shortcuts

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