binlogplayertest

package
v2.0.0-alpha5+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2015 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, bpc binlogplayer.Client, endPoint *pb.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 *proto.StreamEvent) error) error

ServeUpdateStream is part of the the UpdateStream interface

func (*FakeBinlogStreamer) StreamKeyRange

func (fake *FakeBinlogStreamer) StreamKeyRange(position string, keyspaceIdType key.KeyspaceIdType, keyRange *pb.KeyRange, charset *mproto.Charset, sendReply func(reply *proto.BinlogTransaction) error) error

StreamKeyRange is part of the the UpdateStream interface

func (*FakeBinlogStreamer) StreamTables

func (fake *FakeBinlogStreamer) StreamTables(position string, tables []string, charset *mproto.Charset, sendReply func(reply *proto.BinlogTransaction) error) error

StreamTables is part of the the UpdateStream interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL