MCPcopy Index your code
hub / github.com/DoNewsCode/core / applyRouter

Function applyRouter

serve.go:270–277  ·  view source on GitHub ↗
(ctn contract.Container, router *mux.Router)

Source from the content-addressed store, hash-verified

268}
269
270func applyRouter(ctn contract.Container, router *mux.Router) {
271 modules := ctn.Modules()
272 for i := range modules {
273 if p, ok := modules[i].(HTTPProvider); ok {
274 p.ProvideHTTP(router)
275 }
276 }
277}
278
279func applyGRPCServer(ctn contract.Container, server *grpc.Server) {
280 modules := ctn.Modules()

Callers 1

httpServeMethod · 0.85

Calls 2

ModulesMethod · 0.65
ProvideHTTPMethod · 0.65

Tested by

no test coverage detected