mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-01-13 13:50:43 +08:00
5e089a2cd1
Signed-off-by: Connor <zbk602423539@gmail.com> Co-authored-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: linning <linningde25@gmail.com> Co-authored-by: YangKeao <keao.yang@yahoo.com> Co-authored-by: andylokandy <andylokandy@hotmail.com> Co-authored-by: Iosmanthus Teng <myosmanthustree@gmail.com>
13 lines
344 B
Go
13 lines
344 B
Go
package message
|
|
|
|
import (
|
|
"github.com/pingcap-incubator/tinykv/proto/pkg/raft_cmdpb"
|
|
"github.com/pingcap-incubator/tinykv/proto/pkg/raft_serverpb"
|
|
)
|
|
|
|
type RaftRouter interface {
|
|
Send(regionID uint64, msg Msg) error
|
|
SendRaftMessage(msg *raft_serverpb.RaftMessage) error
|
|
SendRaftCommand(req *raft_cmdpb.RaftCmdRequest, cb *Callback) error
|
|
}
|