Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
RelativePath string // 访问前缀,如 "/doc"
OpenApiContent []byte // openapi.yaml的数据内容
StaticPath string // 静态资源路径(可选,默认 embed 的 front)
KService Knife4gService
}
type Knife4gService ¶ added in v0.0.3
type OpenAPI ¶
type OpenAPI struct {
OpenAPI string `yaml:"openapi" json:"swagger"`
Info map[string]interface{} `yaml:"info" json:"info"`
Paths map[string]interface{} `yaml:"paths" json:"paths"`
Components map[string]interface{} `yaml:"components" json:"definitions"`
Tags []struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
} `yaml:"tags" json:"tags"`
}
OpenAPI文档结构
Click to show internal directories.
Click to hide internal directories.