Documentation
¶
Index ¶
- func ExportSpecToFile(outputPath, format string, extraDocs []OpenAPIDocFunc) error
- func ExportSpecToFileWithVersion(outputPath, format, openAPIVersion string, extraDocs []OpenAPIDocFunc) error
- func GenerateService(title, apiVersion, description string, extraDocs []OpenAPIDocFunc, ...) (openapi.OpenAPIService, error)
- func RegisterAllOpenAPIDocs(svc openapi.OpenAPIService, extra ...OpenAPIDocFunc) error
- type OpenAPIDocFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportSpecToFile ¶
func ExportSpecToFile(outputPath, format string, extraDocs []OpenAPIDocFunc) error
func ExportSpecToFileWithVersion ¶
func ExportSpecToFileWithVersion(outputPath, format, openAPIVersion string, extraDocs []OpenAPIDocFunc) error
func GenerateService ¶
func GenerateService(title, apiVersion, description string, extraDocs []OpenAPIDocFunc, opts ...openapi.ServiceOption) (openapi.OpenAPIService, error)
func RegisterAllOpenAPIDocs ¶
func RegisterAllOpenAPIDocs(svc openapi.OpenAPIService, extra ...OpenAPIDocFunc) error
Types ¶
type OpenAPIDocFunc ¶
type OpenAPIDocFunc func(svc openapi.OpenAPIService) error
Click to show internal directories.
Click to hide internal directories.