MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewRouter

Function NewRouter

api/cloudcontroller/ccv3/internal/routing.go:111–116  ·  view source on GitHub ↗

NewRouter returns a pointer to a new Router.

(routes map[string]Route, baseURL string)

Source from the content-addressed store, hash-verified

109
110// NewRouter returns a pointer to a new Router.
111func NewRouter(routes map[string]Route, baseURL string) *Router {
112 return &Router{
113 routes: routes,
114 baseURL: baseURL,
115 }
116}
117
118// CreateRequest returns a request key'd off of the name given. The params are
119// merged into the URL and body is set as the request body.

Callers 2

InitializeRouterMethod · 0.92
routing_test.goFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected