mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
17 lines
726 B
Go
17 lines
726 B
Go
package raft
|
|
|
|
//------------------------------------------------------------------------------
|
|
//
|
|
// Typedefs
|
|
//
|
|
//------------------------------------------------------------------------------
|
|
|
|
// Transporter is the interface for allowing the host application to transport
|
|
// requests to other nodes.
|
|
type Transporter interface {
|
|
SendVoteRequest(server Server, peer *Peer, req *RequestVoteRequest) *RequestVoteResponse
|
|
SendAppendEntriesRequest(server Server, peer *Peer, req *AppendEntriesRequest) *AppendEntriesResponse
|
|
SendSnapshotRequest(server Server, peer *Peer, req *SnapshotRequest) *SnapshotResponse
|
|
SendSnapshotRecoveryRequest(server Server, peer *Peer, req *SnapshotRecoveryRequest) *SnapshotRecoveryResponse
|
|
}
|