Documentation ¶
Index ¶
Constants ¶
View Source
const ( WritingDataErrorMessage = "Writing swagger data is failed" ReadingFromVFSErrorMessage = "Error while reading swagger files from virtual file system" ReadingSwaggerDefinitionErrorMessage = "Reading of a swagger definition is failed" )
Error messages
View Source
const (
ContentTypeHeaderKey = "Content-Type"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(apiStaticFS http.FileSystem, swaggerDefReader DefinitionReader) gin.HandlerFunc
Types ¶
type DefinitionReader ¶
It returns a v2 or v3 swagger definition as a string. Example of the definition is https://petstore.swagger.io/v2/swagger.json
Click to show internal directories.
Click to hide internal directories.