mock

package
v0.0.0-...-2c9e0f5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumer

type MockConsumer struct {
	// contains filtered or unexported fields
}

Mock of Consumer interface

func NewMockConsumer

func NewMockConsumer(ctrl *gomock.Controller) *MockConsumer

func (*MockConsumer) AddGroupPartition

func (_m *MockConsumer) AddGroupPartition(_param0 int32)

func (*MockConsumer) AddPartition

func (_m *MockConsumer) AddPartition(_param0 string, _param1 int32, _param2 int64) error

func (*MockConsumer) Close

func (_m *MockConsumer) Close() error

func (*MockConsumer) Commit

func (_m *MockConsumer) Commit(_param0 string, _param1 int32, _param2 int64) error

func (*MockConsumer) EXPECT

func (_m *MockConsumer) EXPECT() *_MockConsumerRecorder

func (*MockConsumer) Events

func (_m *MockConsumer) Events() <-chan kafka.Event

func (*MockConsumer) RemovePartition

func (_m *MockConsumer) RemovePartition(_param0 string, _param1 int32) error

func (*MockConsumer) Subscribe

func (_m *MockConsumer) Subscribe(_param0 map[string]int64) error

type MockProducer

type MockProducer struct {
	// contains filtered or unexported fields
}

Mock of Producer interface

func NewMockProducer

func NewMockProducer(ctrl *gomock.Controller) *MockProducer

func (*MockProducer) Close

func (_m *MockProducer) Close() error

func (*MockProducer) EXPECT

func (_m *MockProducer) EXPECT() *_MockProducerRecorder

func (*MockProducer) Emit

func (_m *MockProducer) Emit(_param0 string, _param1 string, _param2 []byte) *kafka.Promise

type MockStorage

type MockStorage struct {
	// contains filtered or unexported fields
}

Mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

func (*MockStorage) Close

func (_m *MockStorage) Close() error

func (*MockStorage) Delete

func (_m *MockStorage) Delete(_param0 string) error

func (*MockStorage) EXPECT

func (_m *MockStorage) EXPECT() *_MockStorageRecorder

func (*MockStorage) Get

func (_m *MockStorage) Get(_param0 string) ([]byte, error)

func (*MockStorage) GetOffset

func (_m *MockStorage) GetOffset(_param0 int64) (int64, error)

func (*MockStorage) Has

func (_m *MockStorage) Has(_param0 string) (bool, error)

func (*MockStorage) Iterator

func (_m *MockStorage) Iterator() (storage.Iterator, error)

func (*MockStorage) IteratorWithRange

func (_m *MockStorage) IteratorWithRange(_param0 []byte, _param1 []byte) (storage.Iterator, error)

func (*MockStorage) MarkRecovered

func (_m *MockStorage) MarkRecovered() error

func (*MockStorage) Open

func (_m *MockStorage) Open() error

func (*MockStorage) Recovered

func (_m *MockStorage) Recovered() bool

func (*MockStorage) Set

func (_m *MockStorage) Set(_param0 string, _param1 []byte) error

func (*MockStorage) SetOffset

func (_m *MockStorage) SetOffset(_param0 int64) error

type MockTopicManager

type MockTopicManager struct {
	// contains filtered or unexported fields
}

Mock of TopicManager interface

func NewMockTopicManager

func NewMockTopicManager(ctrl *gomock.Controller) *MockTopicManager

func (*MockTopicManager) Close

func (_m *MockTopicManager) Close() error

func (*MockTopicManager) EXPECT

func (_m *MockTopicManager) EXPECT() *_MockTopicManagerRecorder

func (*MockTopicManager) EnsureStreamExists

func (_m *MockTopicManager) EnsureStreamExists(_param0 string, _param1 int) error

func (*MockTopicManager) EnsureTableExists

func (_m *MockTopicManager) EnsureTableExists(_param0 string, _param1 int) error

func (*MockTopicManager) Partitions

func (_m *MockTopicManager) Partitions(_param0 string) ([]int32, error)

type MockkafkaProxy

type MockkafkaProxy struct {
	// contains filtered or unexported fields
}

Mock of kafkaProxy interface

func NewMockkafkaProxy

func NewMockkafkaProxy(ctrl *gomock.Controller) *MockkafkaProxy

func (*MockkafkaProxy) Add

func (_m *MockkafkaProxy) Add(_param0 string, _param1 int64) error

func (*MockkafkaProxy) AddGroup

func (_m *MockkafkaProxy) AddGroup()

func (*MockkafkaProxy) EXPECT

func (_m *MockkafkaProxy) EXPECT() *_MockkafkaProxyRecorder

func (*MockkafkaProxy) Remove

func (_m *MockkafkaProxy) Remove(_param0 string) error

func (*MockkafkaProxy) Stop

func (_m *MockkafkaProxy) Stop()

Jump to

Keyboard shortcuts

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