talent-plan-tinykv/kv/raftstore/message/raft_router.go
Connor 5e089a2cd1 init course framework
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>
2020-04-30 15:25:07 +08:00

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
}