Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Jille/raft-grpc-transport
/ functions
Functions
257 in github.com/Jille/raft-grpc-transport
⨍
Functions
257
◇
Types & classes
35
↓ 13 callers
Function
file_transport_proto_rawDescGZIP
()
proto/transport.pb.go:1162
↓ 10 callers
Function
decodeRPCHeader
(m *pb.RPCHeader)
fromproto.go:20
↓ 10 callers
Function
doFuzz
(rm interface{}, i int)
completeness_test.go:16
↓ 10 callers
Function
encodeRPCHeader
(s raft.RPCHeader)
toproto.go:21
↓ 10 callers
Function
verify
(t *testing.T, rm1, rm2 interface{})
completeness_test.go:21
↓ 7 callers
Method
getPeer
(target raft.ServerAddress)
raftapi.go:41
↓ 6 callers
Method
handleRPC
(command interface{}, data io.Reader)
grpcapi.go:20
↓ 4 callers
Method
AppendEntries
AppendEntries performs a single append entries request / response.
proto/transport_grpc.pb.go:28
↓ 4 callers
Method
GetData
()
proto/transport.pb.go:211
↓ 4 callers
Method
Recv
()
proto/transport_grpc.pb.go:288
↓ 4 callers
Method
Send
(*InstallSnapshotRequest)
proto/transport_grpc.pb.go:115
↓ 3 callers
Method
Close
()
raftapi.go:305
↓ 3 callers
Method
InstallSnapshot
InstallSnapshot is the command sent to a Raft peer to bootstrap its log (and state machine) from a snapshot on another peer.
proto/transport_grpc.pb.go:34
↓ 3 callers
Method
RequestPreVote
RequestPreVote is the command used by a candidate to ask a Raft peer for a vote in an election.
proto/transport_grpc.pb.go:36
↓ 3 callers
Method
RequestVote
RequestVote is the command used by a candidate to ask a Raft peer for a vote in an election.
proto/transport_grpc.pb.go:30
↓ 3 callers
Method
TimeoutNow
TimeoutNow is used to start a leadership transfer to the target node.
proto/transport_grpc.pb.go:32
↓ 3 callers
Function
decodeAppendEntriesRequest
(m *pb.AppendEntriesRequest)
fromproto.go:8
↓ 3 callers
Function
decodeAppendEntriesResponse
(m *pb.AppendEntriesResponse)
fromproto.go:66
↓ 3 callers
Function
encodeAppendEntriesRequest
(s *raft.AppendEntriesRequest)
toproto.go:9
↓ 3 callers
Function
encodeAppendEntriesResponse
(s *raft.AppendEntriesResponse)
toproto.go:67
↓ 2 callers
Method
AppendEntriesPipeline
AppendEntriesPipeline opens an AppendEntries message stream.
proto/transport_grpc.pb.go:26
↓ 2 callers
Method
Consumer
Consumer returns a channel that can be used to consume and respond to RPC requests.
raftapi.go:32
↓ 2 callers
Method
Read
(b []byte)
grpcapi.go:105
↓ 2 callers
Method
Register
Register the RaftTransport gRPC service on a gRPC server.
transport.go:54
↓ 2 callers
Method
Transport
Transport returns a raft.Transport that communicates over gRPC.
transport.go:59
↓ 2 callers
Function
decodeInstallSnapshotRequest
(m *pb.InstallSnapshotRequest)
fromproto.go:96
↓ 2 callers
Function
decodeInstallSnapshotResponse
(m *pb.InstallSnapshotResponse)
fromproto.go:111
↓ 2 callers
Function
decodeRequestPreVoteRequest
(m *pb.RequestPreVoteRequest)
fromproto.go:131
↓ 2 callers
Function
decodeRequestPreVoteResponse
(m *pb.RequestPreVoteResponse)
fromproto.go:140
↓ 2 callers
Function
decodeRequestVoteRequest
(m *pb.RequestVoteRequest)
fromproto.go:76
↓ 2 callers
Function
decodeRequestVoteResponse
(m *pb.RequestVoteResponse)
fromproto.go:87
↓ 2 callers
Function
decodeTimeoutNowRequest
(m *pb.TimeoutNowRequest)
fromproto.go:119
↓ 2 callers
Function
decodeTimeoutNowResponse
(m *pb.TimeoutNowResponse)
fromproto.go:125
↓ 2 callers
Method
disconnectAll
()
transport.go:76
↓ 2 callers
Function
encodeInstallSnapshotRequest
(s *raft.InstallSnapshotRequest)
toproto.go:97
↓ 2 callers
Function
encodeInstallSnapshotResponse
(s *raft.InstallSnapshotResponse)
toproto.go:112
↓ 2 callers
Function
encodeRequestPreVoteRequest
(s *raft.RequestPreVoteRequest)
toproto.go:132
↓ 2 callers
Function
encodeRequestPreVoteResponse
(s *raft.RequestPreVoteResponse)
toproto.go:141
↓ 2 callers
Function
encodeRequestVoteRequest
(s *raft.RequestVoteRequest)
toproto.go:77
↓ 2 callers
Function
encodeRequestVoteResponse
(s *raft.RequestVoteResponse)
toproto.go:88
↓ 2 callers
Function
encodeTimeoutNowRequest
(s *raft.TimeoutNowRequest)
toproto.go:120
↓ 2 callers
Function
encodeTimeoutNowResponse
(s *raft.TimeoutNowResponse)
toproto.go:126
↓ 2 callers
Function
isHeartbeat
(command interface{})
grpcapi.go:140
↓ 2 callers
Function
makeTestPair
(ctx context.Context, t *testing.T)
pair_test.go:19
↓ 1 callers
Method
Close
()
transport.go:63
↓ 1 callers
Method
CloseAndRecv
()
proto/transport_grpc.pb.go:116
↓ 1 callers
Method
Descriptor
()
proto/transport.pb.go:65
↓ 1 callers
Method
Descriptor
Deprecated: Use Log.ProtoReflect.Descriptor instead.
proto/transport.pb.go:186
↓ 1 callers
Method
SendAndClose
(*InstallSnapshotResponse)
proto/transport_grpc.pb.go:287
↓ 1 callers
Function
decodeLog
(m *pb.Log)
fromproto.go:36
↓ 1 callers
Function
decodeLogType
(m pb.Log_LogType)
fromproto.go:47
↓ 1 callers
Function
decodeLogs
(m []*pb.Log)
fromproto.go:28
↓ 1 callers
Function
encodeLog
(s *raft.Log)
toproto.go:37
↓ 1 callers
Function
encodeLogType
(s raft.LogType)
toproto.go:48
↓ 1 callers
Function
encodeLogs
(s []*raft.Log)
toproto.go:29
↓ 1 callers
Function
file_transport_proto_init
()
proto/transport.pb.go:1221
↓ 1 callers
Method
receiver
()
raftapi.go:232
Method
AppendEntries
AppendEntries sends the appropriate RPC to the target node.
raftapi.go:66
Method
AppendEntries
AppendEntries is used to add another request to the pipeline. The send may block which is an effective form of back-pressure.
raftapi.go:198
Method
AppendEntries
(ctx context.Context, req *pb.AppendEntriesRequest)
grpcapi.go:55
Method
AppendEntries
(ctx context.Context, in *AppendEntriesRequest, opts ...grpc.CallOption)
proto/transport_grpc.pb.go:78
Method
AppendEntries
AppendEntries performs a single append entries request / response.
proto/transport_grpc.pb.go:155
Method
AppendEntries
(context.Context, *AppendEntriesRequest)
proto/transport_grpc.pb.go:174
Method
AppendEntriesPipeline
AppendEntriesPipeline returns an interface that can be used to pipeline AppendEntries requests.
raftapi.go:166
Method
AppendEntriesPipeline
(s pb.RaftTransport_AppendEntriesPipelineServer)
grpcapi.go:122
Method
AppendEntriesPipeline
(ctx context.Context, opts ...grpc.CallOption)
proto/transport_grpc.pb.go:47
Method
AppendEntriesPipeline
AppendEntriesPipeline opens an AppendEntries message stream.
proto/transport_grpc.pb.go:153
Method
AppendEntriesPipeline
(RaftTransport_AppendEntriesPipelineServer)
proto/transport_grpc.pb.go:171
Method
Close
Close closes the pipeline and cancels all inflight RPCs
raftapi.go:224
Method
CloseAndRecv
()
proto/transport_grpc.pb.go:128
Method
Connect
(target raft.ServerAddress, t raft.Transport)
raftapi.go:309
Method
Consumer
Consumer returns a channel that can be used to consume response futures when they are ready.
raftapi.go:219
Method
DecodePeer
DecodePeer is used to deserialize a peer's address.
raftapi.go:291
Method
Descriptor
Deprecated: Use RPCHeader.ProtoReflect.Descriptor instead.
proto/transport.pb.go:120
Method
Descriptor
Deprecated: Use AppendEntriesRequest.ProtoReflect.Descriptor instead.
proto/transport.pb.go:274
Method
Descriptor
Deprecated: Use AppendEntriesResponse.ProtoReflect.Descriptor instead.
proto/transport.pb.go:367
Method
Descriptor
Deprecated: Use RequestVoteRequest.ProtoReflect.Descriptor instead.
proto/transport.pb.go:447
Method
Descriptor
Deprecated: Use RequestVoteResponse.ProtoReflect.Descriptor instead.
proto/transport.pb.go:532
Method
Descriptor
Deprecated: Use TimeoutNowRequest.ProtoReflect.Descriptor instead.
proto/transport.pb.go:600
Method
Descriptor
Deprecated: Use TimeoutNowResponse.ProtoReflect.Descriptor instead.
proto/transport.pb.go:647
Method
Descriptor
Deprecated: Use InstallSnapshotRequest.ProtoReflect.Descriptor instead.
proto/transport.pb.go:706
Method
Descriptor
Deprecated: Use InstallSnapshotResponse.ProtoReflect.Descriptor instead.
proto/transport.pb.go:825
Method
Descriptor
Deprecated: Use RequestPreVoteRequest.ProtoReflect.Descriptor instead.
proto/transport.pb.go:889
Method
Descriptor
Deprecated: Use RequestPreVoteResponse.ProtoReflect.Descriptor instead.
proto/transport.pb.go:959
Method
Disconnect
(target raft.ServerAddress)
raftapi.go:313
Method
DisconnectAll
()
raftapi.go:327
Method
EncodePeer
EncodePeer is used to serialize a peer's address.
raftapi.go:286
Method
Enum
()
proto/transport.pb.go:55
Method
EnumDescriptor
Deprecated: Use Log_LogType.Descriptor instead.
proto/transport.pb.go:78
Method
Error
Error blocks until the future arrives and then returns the error status of the future. This may be called any number of times - all calls will return
raftapi.go:261
Method
GetAddr
()
proto/transport.pb.go:138
Method
GetAppendedAt
()
proto/transport.pb.go:225
Method
GetCandidate
()
proto/transport.pb.go:465
Method
GetConfiguration
()
proto/transport.pb.go:759
Method
GetConfigurationIndex
()
proto/transport.pb.go:766
Method
GetData
()
proto/transport.pb.go:780
Method
GetEntries
()
proto/transport.pb.go:313
Method
GetExtensions
()
proto/transport.pb.go:218
Method
GetGranted
()
proto/transport.pb.go:557
Method
GetGranted
()
proto/transport.pb.go:977
next →
1–100 of 257, ranked by callers