replicator

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBStoreOpenReadStreamInCallForReplicator

type MockBStoreOpenReadStreamInCallForReplicator struct {
	mock.Mock
}

MockBStoreOpenReadStreamInCallForReplicator is the mock of store.BStoreOpenReadStreamInCall

func (*MockBStoreOpenReadStreamInCallForReplicator) Done

Done is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamInCallForReplicator) Flush

Flush is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamInCallForReplicator) Read

Read is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamInCallForReplicator) SetResponseHeaders

func (m *MockBStoreOpenReadStreamInCallForReplicator) SetResponseHeaders(headers map[string]string) error

SetResponseHeaders is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamInCallForReplicator) Write

Write is the mock of the corresponding store. method

type MockBStoreOpenReadStreamOutCallForReplicator

type MockBStoreOpenReadStreamOutCallForReplicator struct {
	mock.Mock
}

MockBStoreOpenReadStreamOutCallForReplicator is the mock of store.BStoreOpenReadStreamOutCall this is used for replicator test

func (*MockBStoreOpenReadStreamOutCallForReplicator) Done

Done is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamOutCallForReplicator) Flush

Flush is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamOutCallForReplicator) Read

Read is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamOutCallForReplicator) ResponseHeaders

ResponseHeaders is the mock of the corresponding store. method

func (*MockBStoreOpenReadStreamOutCallForReplicator) Write

Write is the mock of the corresponding store. method

type MockReplicatorClientFactory

type MockReplicatorClientFactory struct {
	mock.Mock
}

ClientFactory is an autogenerated mock type for the ClientFactory type

func (*MockReplicatorClientFactory) GetHostsForAllDeployment added in v1.26.0

func (_m *MockReplicatorClientFactory) GetHostsForAllDeployment() map[string][]string

GetHostsForAllDeployment provides a mock function with given fields:

func (*MockReplicatorClientFactory) GetHostsForDeployment added in v1.26.0

func (_m *MockReplicatorClientFactory) GetHostsForDeployment(deployment string) []string

GetHostsForDeployment provides a mock function with given fields: deployment

func (*MockReplicatorClientFactory) GetReplicatorClient

func (_m *MockReplicatorClientFactory) GetReplicatorClient(zone string) (goreplicator.TChanReplicator, error)

GetReplicatorClient provides a mock function with given fields: zone

func (*MockReplicatorClientFactory) SetTChannel

func (_m *MockReplicatorClientFactory) SetTChannel(ch *tchannel.Channel)

SetTChannel provides a mock function with given fields: ch

func (*MockReplicatorClientFactory) UpdateHostsForDeployment added in v1.26.0

func (_m *MockReplicatorClientFactory) UpdateHostsForDeployment(deployment string, hosts []string)

UpdateHostsForDeployment provides a mock function with given fields: deployment, hosts

type MockTChanReplicator

type MockTChanReplicator struct {
	mock.Mock
}

MockTChanReplicator is the mock implementation for replicator and used for testing

func (*MockTChanReplicator) CreateConsumerGroupExtent added in v1.26.0

func (m *MockTChanReplicator) CreateConsumerGroupExtent(ctx thrift.Context, createRequest *shared.CreateConsumerGroupExtentRequest) error

func (*MockTChanReplicator) CreateConsumerGroupUUID

CreateConsumerGroupUUID is the mock for corresponding replicator API

func (*MockTChanReplicator) CreateDestinationUUID

func (m *MockTChanReplicator) CreateDestinationUUID(ctx thrift.Context, createRequest *shared.CreateDestinationUUIDRequest) (*shared.DestinationDescription, error)

CreateDestinationUUID is the mock for corresponding replicator API

func (*MockTChanReplicator) CreateExtent

func (*MockTChanReplicator) CreateRemoteConsumerGroupExtent added in v1.26.0

func (m *MockTChanReplicator) CreateRemoteConsumerGroupExtent(ctx thrift.Context, createRequest *shared.CreateConsumerGroupExtentRequest) error

func (*MockTChanReplicator) CreateRemoteConsumerGroupUUID

func (m *MockTChanReplicator) CreateRemoteConsumerGroupUUID(ctx thrift.Context, createRequest *shared.CreateConsumerGroupUUIDRequest) error

CreateRemoteConsumerGroupUUID is the mock for corresponding replicator API

func (*MockTChanReplicator) CreateRemoteDestinationUUID

func (m *MockTChanReplicator) CreateRemoteDestinationUUID(ctx thrift.Context, createRequest *shared.CreateDestinationUUIDRequest) error

CreateRemoteDestinationUUID is the mock for corresponding replicator API

func (*MockTChanReplicator) CreateRemoteExtent

func (m *MockTChanReplicator) CreateRemoteExtent(ctx thrift.Context, createRequest *shared.CreateExtentRequest) error

func (*MockTChanReplicator) DeleteConsumerGroup

func (m *MockTChanReplicator) DeleteConsumerGroup(ctx thrift.Context, deleteRequest *shared.DeleteConsumerGroupRequest) error

DeleteConsumerGroup is the mock for corresponding replicator API

func (*MockTChanReplicator) DeleteDestination

func (m *MockTChanReplicator) DeleteDestination(ctx thrift.Context, deleteRequest *shared.DeleteDestinationRequest) error

DeleteDestination is the mock for corresponding replicator API

func (*MockTChanReplicator) DeleteRemoteConsumerGroup

func (m *MockTChanReplicator) DeleteRemoteConsumerGroup(ctx thrift.Context, deleteRequest *shared.DeleteConsumerGroupRequest) error

DeleteRemoteConsumerGroup is the mock for corresponding replicator API

func (*MockTChanReplicator) DeleteRemoteDestination

func (m *MockTChanReplicator) DeleteRemoteDestination(ctx thrift.Context, deleteRequest *shared.DeleteDestinationRequest) error

DeleteRemoteDestination is the mock for corresponding replicator API

func (*MockTChanReplicator) ListConsumerGroups added in v1.26.0

func (*MockTChanReplicator) ListDestinations

func (*MockTChanReplicator) ListDestinationsByUUID

func (*MockTChanReplicator) ListExtentsStats

func (*MockTChanReplicator) ReadConsumerGroup added in v1.26.0

func (*MockTChanReplicator) ReadConsumerGroupExtents added in v1.26.0

func (*MockTChanReplicator) ReadConsumerGroupInRemoteZone added in v1.26.0

func (m *MockTChanReplicator) ReadConsumerGroupInRemoteZone(ctx thrift.Context, listRequest *shared.ReadConsumerGroupInRemoteRequest) (*shared.ConsumerGroupDescription, error)

func (*MockTChanReplicator) ReadDestination added in v1.26.0

func (*MockTChanReplicator) ReadDestinationInRemoteZone added in v1.26.0

func (m *MockTChanReplicator) ReadDestinationInRemoteZone(ctx thrift.Context, listRequest *shared.ReadDestinationInRemoteZoneRequest) (*shared.DestinationDescription, error)

func (*MockTChanReplicator) SetAckOffset added in v1.26.0

func (m *MockTChanReplicator) SetAckOffset(ctx thrift.Context, request *shared.SetAckOffsetRequest) error

func (*MockTChanReplicator) SetAckOffsetInRemote added in v1.26.0

func (m *MockTChanReplicator) SetAckOffsetInRemote(ctx thrift.Context, request *shared.SetAckOffsetRequest) error

func (*MockTChanReplicator) UpdateConsumerGroup

UpdateConsumerGroup is the mock for corresponding replicator API

func (*MockTChanReplicator) UpdateDestination

UpdateDestination is the mock for corresponding replicator API

func (*MockTChanReplicator) UpdateRemoteConsumerGroup

func (m *MockTChanReplicator) UpdateRemoteConsumerGroup(ctx thrift.Context, updateRequest *shared.UpdateConsumerGroupRequest) error

UpdateRemoteConsumerGroup is the mock for corresponding replicator API

func (*MockTChanReplicator) UpdateRemoteDestination

func (m *MockTChanReplicator) UpdateRemoteDestination(ctx thrift.Context, updateRequest *shared.UpdateDestinationRequest) error

UpdateRemoteDestination is the mock for corresponding replicator API

Jump to

Keyboard shortcuts

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