Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { *chi.Mux // contains filtered or unexported fields }
Router extends `chi.Mux` to enable it to deal with OpenAPI 3 contract.
func (*Router) HandleOperation ¶
func (r *Router) HandleOperation(operationID string, handlerFn http.HandlerFunc)
HandleOperation adds the route `pattern` that matches the `method` HTTP method described by `operationID` of OpenAPI 3 contract to execute the `handlerFn` http.HandlerFunc.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.