MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / RaftClient

Interface RaftClient

bitmap/pb.pb.go:5465–5470  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

5463//
5464// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
5465type 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
5472type raftClient struct {
5473 cc *grpc.ClientConn

Callers 4

_Raft_Heartbeat_HandlerFunction · 0.65
_Raft_IsPeer_HandlerFunction · 0.65

Implementers 2

raftClientbitmap/pb.pb.go

Calls

no outgoing calls

Tested by

no test coverage detected