kk_swagger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSwagger

func InitSwagger(c Config)

Types

type ApiInfo

type ApiInfo struct {
	Description string   `json:"description"`
	OperationId string   `json:"operationId"`
	Tags        []string `json:"tags"`
}

func GetApiInfo

func GetApiInfo(swaggerJson string) []ApiInfo

type Config

type Config struct {
	Options   []func(*ginSwagger.Config)
	R         *gin.Engine
	Port      int
	UrlPrefix string //default "/swagger/"
	DebugMode bool
}

type PathItem

type PathItem map[string]ApiInfo

type Swagger

type Swagger struct {
	Paths map[string]PathItem `json:"paths"`
}

Jump to

Keyboard shortcuts

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