MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / HandlerFromMux

Function HandlerFromMux

examples/overlay/api/ping.gen.go:137–141  ·  view source on GitHub ↗

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

(si ServerInterface, r *mux.Router)

Source from the content-addressed store, hash-verified

135
136// HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
137func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler {
138 return HandlerWithOptions(si, GorillaServerOptions{
139 BaseRouter: r,
140 })
141}
142
143func HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler {
144 return HandlerWithOptions(si, GorillaServerOptions{

Callers 1

mainFunction · 0.92

Calls 1

HandlerWithOptionsFunction · 0.70

Tested by

no test coverage detected