RaftClient is the client API for Raft service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
| 5463 | // |
| 5464 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 5465 | type RaftClient interface { |
| 5466 | Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) |
| 5467 | RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) |
| 5468 | JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) |
| 5469 | IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) |
| 5470 | } |
| 5471 | |
| 5472 | type raftClient struct { |
| 5473 | cc *grpc.ClientConn |
no outgoing calls
no test coverage detected