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

Function applyGRPCServer

serve.go:279–286  ·  view source on GitHub ↗
(ctn contract.Container, server *grpc.Server)

Source from the content-addressed store, hash-verified

277}
278
279func applyGRPCServer(ctn contract.Container, server *grpc.Server) {
280 modules := ctn.Modules()
281 for i := range modules {
282 if p, ok := modules[i].(GRPCProvider); ok {
283 p.ProvideGRPC(server)
284 }
285 }
286}
287
288func applyRunGroup(ctn contract.Container, group *run.Group) {
289 modules := ctn.Modules()

Callers 1

grpcServeMethod · 0.85

Calls 2

ModulesMethod · 0.65
ProvideGRPCMethod · 0.65

Tested by

no test coverage detected