MCPcopy
hub / github.com/grpc/grpc-go / Register

Function Register

orca/service.go:114–121  ·  view source on GitHub ↗

Register creates a new ORCA service implementation configured using the provided options and registers the same on the provided grpc Server.

(s grpc.ServiceRegistrar, opts ServiceOptions)

Source from the content-addressed store, hash-verified

112// Register creates a new ORCA service implementation configured using the
113// provided options and registers the same on the provided grpc Server.
114func Register(s grpc.ServiceRegistrar, opts ServiceOptions) error {
115 service, err := NewService(opts)
116 if err != nil {
117 return err
118 }
119 v3orcaservicegrpc.RegisterOpenRcaServiceServer(s, service)
120 return nil
121}
122
123// determineReportingInterval determines the reporting interval for out-of-band
124// metrics. If the reporting interval is not specified in the request, or is

Callers 6

TestProducerMethod · 0.92
startORCAServerFunction · 0.92
mainFunction · 0.92
startServerFunction · 0.92
mainFunction · 0.92

Calls 1

NewServiceFunction · 0.85

Tested by 4

TestProducerMethod · 0.74
startORCAServerFunction · 0.74
startServerFunction · 0.74