MCPcopy
hub / github.com/yusing/godoxy / StartAddRoute

Method StartAddRoute

internal/entrypoint/types/entrypoint.go:31–31  ·  view source on GitHub ↗

StartAddRoute registers the route with the entrypoint. It is synchronous: it does not return until the route is registered or an error occurs. For HTTP routes, a server for the route's listen address is created and started if needed. For stream routes, ListenAndServe is invoked and the route is adde

(r types.Route)

Source from the content-addressed store, hash-verified

29 // the excluded pool only. Returns an error on listen/bind failure, stream
30 // listen failure, or unsupported route type.
31 StartAddRoute(r types.Route) error
32 IterRoutes(yield func(r types.Route) bool)
33 NumRoutes() int
34 RoutesByProvider() map[string][]types.Route

Callers 5

StartMethod · 0.65
addToLoadBalancerMethod · 0.65
StartMethod · 0.65
StartMethod · 0.65
addHTTPRouteAtFunction · 0.65

Implementers 2

testEntrypointinternal/route/reverse_proxy_test.go
Entrypointinternal/entrypoint/entrypoint.go

Calls

no outgoing calls

Tested by 1

addHTTPRouteAtFunction · 0.52