Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomRoute ¶
type Router ¶
type Router struct { Routes []CustomRoute SchemaVersion string }
Router helps link http.Request.s and an OpenAPIv3 spec
func NewRouter ¶
NewRouter creates a new router.
If the given Swagger has servers, router will use them. All operations of the Swagger will be added to the router.
func NewRouterDBLoader ¶
func NewRouterDBLoader(schemaID int, openAPISpec database.DBOpenAPILoader) (*Router, error)
NewRouterDBLoader creates a new router based on DB OpenAPI loader.
Click to show internal directories.
Click to hide internal directories.