Documentation
¶
Index ¶
Constants ¶
View Source
const ( InBody = "body" InFormData = "formData" InPath = "path" InQuery = "query" InHeader = "header" )
View Source
const DefaultOperationClass = "http"
View Source
const OAuth2 = "oauth2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Method ¶
type Method struct {
Summary string
Description string
OperationId string
Tags []string
Parameters []Parameter
MethodName string
Consumes []string
Path string
Extension *Extension
Securities []map[string][]string
}
func (*Method) GetExtensionClass ¶
func (*Method) HasExtension ¶
func (*Method) HasSecurity ¶
type Parameter ¶
type Parameter struct {
Name string
Description string
Required bool
In string
Type string
Format string
Schema *Schema
Default interface{}
}
func (*Parameter) DefaultStr ¶
func (*Parameter) GetDescription ¶
type Root ¶
type Root struct {
Host string
BasePath string
Schemes []string
Paths map[string]*Path
Tags []Tag
Definitions map[string]Definition
SecurityDefinitions map[string]SecurityDefinition
}
func ReadSwagger ¶
func (*Root) GetCommands ¶
type SecurityDefinition ¶
type SecurityDefinition struct {
Type string
}
Click to show internal directories.
Click to hide internal directories.