RegisterServiceServerOption returns a ServerOption that will run f() in Start or StartServer with the grpc.Server created before serving. This allows other services to be registered on the test server (e.g. ORCA, health, or reflection).
(f func(grpc.ServiceRegistrar))
| 135 | // allows other services to be registered on the test server (e.g. ORCA, |
| 136 | // health, or reflection). |
| 137 | func RegisterServiceServerOption(f func(grpc.ServiceRegistrar)) grpc.ServerOption { |
| 138 | return ®isterServiceServerOption{f: f} |
| 139 | } |
| 140 | |
| 141 | func (ss *StubServer) setupServer(sopts ...grpc.ServerOption) (net.Listener, error) { |
| 142 | if ss.Network == "" { |
no outgoing calls