doc

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doc

func Doc(basePath, env string, opts ...Opts) http.HandlerFunc

Types

type Opts

type Opts func(*swaggerConfig)

type RouteGen added in v1.5.9

type RouteGen interface {
	GetRouteInfos() []RouteInfos
}

type RouteGroup added in v1.5.9

type RouteGroup struct {
	GroupName string `json:"name"`
}

type RouteInfos added in v1.5.9

type RouteInfos struct {
	Method     string `json:"method"`      //  method
	Path       string `json:"path"`        //  path
	BasePath   string `json:"base_path"`   //  BasePath
	HandlerFun string `json:"handler_fun"` //  handlerFun
	Summary    string `json:"summary"`     //  Summary
	Public     bool   `json:"public"`      //  is public router
	RouteGroup
}

Jump to

Keyboard shortcuts

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