Documentation ¶
Index ¶
- Variables
- func AddRouteRegistration(register func(*mux.Router))
- func GenerateProxyFunctionForInput(inputFile, outputDir string) error
- func ProxyRequest(w http.ResponseWriter, r *http.Request, url, method string, ...)
- func RegisterRoutes(r *mux.Router)
- type ApplicationJSON
- type Content
- type OpenAPIMethod
- type OpenAPIPath
- type Properties
- type ProxyMapping
- type RequestBody
- type Schema
Constants ¶
This section is empty.
Variables ¶
View Source
var RouteRegistrations []func(*mux.Router)
Functions ¶
func AddRouteRegistration ¶
func ProxyRequest ¶
func RegisterRoutes ¶
Types ¶
type ApplicationJSON ¶
type ApplicationJSON struct {
Schema Schema `yaml:"schema"`
}
type Content ¶
type Content struct {
ApplicationJSON ApplicationJSON `yaml:"application/json"`
}
type OpenAPIMethod ¶
type OpenAPIMethod struct { Summary string `yaml:"summary"` RequestBody RequestBody `yaml:"requestBody"` ProxyMapping ProxyMapping `yaml:"proxy_mapping"` }
type OpenAPIPath ¶
type OpenAPIPath struct {
Methods map[string]*OpenAPIMethod `yaml:",inline"`
}
type Properties ¶
type Properties struct {
Type string `yaml:"type"`
}
type ProxyMapping ¶
type RequestBody ¶
type RequestBody struct {
Content Content `yaml:"content"`
}
type Schema ¶
type Schema struct { Type string `yaml:"type"` Properties map[string]*Properties `yaml:"properties"` }
Click to show internal directories.
Click to hide internal directories.