apidoc

package
v1.12.13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DocList

func DocList(w http.ResponseWriter, r *http.Request)

func GenOpenapi added in v1.8.3

func GenOpenapi(methodInfo *ApiDocInfo, api *apidoc.API, dec string)

func GetDoc added in v1.12.5

func GetDoc(modName string) *openapi3.T

参数为路径和格式

func Openapi added in v1.8.3

func Openapi(filePath, modName string)

func RegisterApiInfo

func RegisterApiInfo(apiInfo *GroupApiInfo)

Types

type ApiDocInfo

type ApiDocInfo struct {
	ApiInfo *pick.ApiInfo
	Method  reflect.Type
}

type GroupApiInfo

type GroupApiInfo struct {
	Describe string
	Infos    []*ApiDocInfo
}

Jump to

Keyboard shortcuts

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