Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAddr = "localhost:8080"
DefaultAddr holds default localhost info
Variables ¶
View Source
var SwaggerParams = common.ConstParams{ Year: time.Now().Year(), Logo: "https://raw.githubusercontent.com/swaggo/swag/master/assets/swaggo.png", Framework: "Go-Swagger", Addr: DefaultAddr, }
SwaggerParams holds default ConstParams for the go-swagger executable
Functions ¶
func HTMLProducer ¶
HTMLProducer is required by swagger in order for the generated server be able to produce the mime type "text/html". The runtime.Producer argument of each handler for the server relies on it to render the pages for the UI.
func RouteHandler ¶
func RouteHandler(rt common.Route, pd *common.ConstParams, req *http.Request) middleware.Responder
RouteHandler returns a middleware.Responder that serves our html and the vulnerable functions.
func SwaggerRootHandler ¶
func SwaggerRootHandler(params swagger_server.RootParams) middleware.Responder
SwaggerRootHandler handles the main page of the go-swagger server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.