Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport( ctx context.Context, changefeed model.ChangeFeedID, role Role, server *p2p.MessageServer, router p2p.MessageRouter, ) (*p2pTransport, error)
NewTransport returns a new transport.
Types ¶
type MockTrans ¶
type MockTrans struct { SendBuffer []*schedulepb.Message RecvBuffer []*schedulepb.Message KeepRecvBuffer bool }
MockTrans mocks transport, used in tests.
Click to show internal directories.
Click to hide internal directories.