swagger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(srv *khttp.Server, specData []byte, opts ...Option)

Register mounts Swagger UI and the OpenAPI spec on the given Kratos HTTP server.

  • GET {basePath}/ → Swagger UI page
  • GET {basePath}/openapi.yaml → raw OpenAPI spec

Types

type Option

type Option func(*config)

func WithBasePath

func WithBasePath(path string) Option

func WithTitle

func WithTitle(title string) Option

Jump to

Keyboard shortcuts

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