RegisterGRPC registers a gRPC subsystem to the component.
(s rpcserver.Registerer)
| 92 | |
| 93 | // RegisterGRPC registers a gRPC subsystem to the component. |
| 94 | func (c *Component) RegisterGRPC(s rpcserver.Registerer) { |
| 95 | if c.GRPC == nil { |
| 96 | c.initGRPC() |
| 97 | } |
| 98 | c.grpcSubsystems = append(c.grpcSubsystems, s) |
| 99 | } |
| 100 | |
| 101 | // WithClusterAuth that can be used to identify a component within a cluster. |
| 102 | func (c *Component) WithClusterAuth() grpc.CallOption { |