Documentation ¶
Index ¶
- func Run(t *testing.T, bpc binlogplayer.Client, endPoint *topodatapb.EndPoint, ...)
- type FakeBinlogStreamer
- func (fake *FakeBinlogStreamer) HandlePanic(err *error)
- func (fake *FakeBinlogStreamer) ServeUpdateStream(position string, sendReply func(reply *binlogdatapb.StreamEvent) error) error
- func (fake *FakeBinlogStreamer) StreamKeyRange(position string, keyRange *topodatapb.KeyRange, charset *binlogdatapb.Charset, ...) error
- func (fake *FakeBinlogStreamer) StreamTables(position string, tables []string, charset *binlogdatapb.Charset, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t *testing.T, bpc binlogplayer.Client, endPoint *topodatapb.EndPoint, fake *FakeBinlogStreamer)
Run runs the test suite
Types ¶
type FakeBinlogStreamer ¶
type FakeBinlogStreamer struct {
// contains filtered or unexported fields
}
FakeBinlogStreamer is our implementation of UpdateStream
func NewFakeBinlogStreamer ¶
func NewFakeBinlogStreamer(t *testing.T) *FakeBinlogStreamer
NewFakeBinlogStreamer returns the test instance for UpdateStream
func (*FakeBinlogStreamer) HandlePanic ¶
func (fake *FakeBinlogStreamer) HandlePanic(err *error)
HandlePanic is part of the the UpdateStream interface
func (*FakeBinlogStreamer) ServeUpdateStream ¶
func (fake *FakeBinlogStreamer) ServeUpdateStream(position string, sendReply func(reply *binlogdatapb.StreamEvent) error) error
ServeUpdateStream is part of the the UpdateStream interface
func (*FakeBinlogStreamer) StreamKeyRange ¶
func (fake *FakeBinlogStreamer) StreamKeyRange(position string, keyRange *topodatapb.KeyRange, charset *binlogdatapb.Charset, sendReply func(reply *binlogdatapb.BinlogTransaction) error) error
StreamKeyRange is part of the the UpdateStream interface
func (*FakeBinlogStreamer) StreamTables ¶
func (fake *FakeBinlogStreamer) StreamTables(position string, tables []string, charset *binlogdatapb.Charset, sendReply func(reply *binlogdatapb.BinlogTransaction) error) error
StreamTables is part of the the UpdateStream interface
Click to show internal directories.
Click to hide internal directories.