Documentation
¶
Index ¶
- func DocList(w http.ResponseWriter, r *http.Request)
- func GenOpenapi(api *pick.ApiInfo, doc *openapi3.T, methodType reflect.Type, tag, dec string)
- func Markdown(filePath, modName string)
- func Openapi(filePath, modName string)
- func RegisterApiInfo(apiInfo *GroupApiInfo)
- type ApiDocInfo
- type GroupApiInfo
- type PMApi
- type PMBody
- type PMCategory
- type PMFile
- type PMHeader
- type PMInfo
- type PMProtocolProfileBehavior
- type PMQuery
- type PMRequest
- type PMUrl
- type ParamTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenOpenapi ¶ added in v1.8.3
func RegisterApiInfo ¶
func RegisterApiInfo(apiInfo *GroupApiInfo)
Types ¶
type GroupApiInfo ¶
type GroupApiInfo struct { Describe string Infos []*ApiDocInfo }
type PMApi ¶
type PMApi struct { Name string `json:"name"` ProtocolProfileBehavior PMProtocolProfileBehavior `json:"protocolProfileBehavior"` Request PMRequest `json:"request"` Response []interface{} `json:"response"` }
type PMCategory ¶
type PMCategory struct { Name string `json:"name"` ProtocolProfileBehavior PMProtocolProfileBehavior `json:"protocolProfileBehavior"` Items []PMApi `json:"item"` }
type PMFile ¶
type PMFile struct { Info PMInfo `json:"info"` Items []PMCategory `json:"item"` }
type PMHeader ¶
type PMHeader struct { Key string `json:"key"` Value string `json:"value"` Type string `json:"type"` Disable bool `json:"disable"` }
TODO
type PMProtocolProfileBehavior ¶
type PMProtocolProfileBehavior struct {
DisableBodyPruning bool `json:"disableBodyPruning"`
}
type ParamTable ¶
type ParamTable struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.