Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Info *Info `json:"info,omitempty"` Paths map[string]*Path `json:"paths,omitempty"` Components *Components `json:"components,omitempty"` }
func (API) ToJSONString ¶
type Components ¶
type Components struct {
Schemas map[string]*ComponentsSchema `json:"schemas,omitempty"`
}
type ComponentsProperty ¶
type ComponentsSchema ¶
type ComponentsSchema struct { Type string `json:"type,omitempty"` Properties map[string]*ComponentsProperty `json:"properties,omitempty"` AdditionalProperties bool `json:"additionalProperties,omitempty"` }
type Method ¶
type Method struct { Function func(http.ResponseWriter, *http.Request) `json:"-"` Tags []string `json:"tags,omitempty"` Summary string `json:"summary,omitempty"` Parameters []*Parameters `json:"parameters,omitempty"` Responses map[int]*Response `json:"responses,omitempty"` }
type Parameters ¶
type ParametersSchema ¶
type Response ¶
type Response struct { Description string `json:"description,omitempty"` Content map[string]*ResponseContent `json:"content,omitempty"` }
type ResponseContent ¶
type ResponseContent struct {
Schema *ResponseSchema `json:"schema,omitempty"`
}
type ResponseSchema ¶
Click to show internal directories.
Click to hide internal directories.