testing

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumerGroup

type MockConsumerGroup struct {
	mock.Mock
	ErrorChan chan error
	// contains filtered or unexported fields
}

func NewMockConsumerGroup

func NewMockConsumerGroup() *MockConsumerGroup

func (*MockConsumerGroup) Close

func (m *MockConsumerGroup) Close() error

func (*MockConsumerGroup) Consume

func (m *MockConsumerGroup) Consume(ctx context.Context, topics []string, handler sarama.ConsumerGroupHandler) error

func (*MockConsumerGroup) Errors

func (m *MockConsumerGroup) Errors() <-chan error

func (*MockConsumerGroup) Pause added in v0.39.0

func (m *MockConsumerGroup) Pause(partitions map[string][]int32)

func (*MockConsumerGroup) PauseAll added in v0.39.0

func (m *MockConsumerGroup) PauseAll()

func (*MockConsumerGroup) Resume added in v0.39.0

func (m *MockConsumerGroup) Resume(partitions map[string][]int32)

func (*MockConsumerGroup) ResumeAll added in v0.39.0

func (m *MockConsumerGroup) ResumeAll()

Jump to

Keyboard shortcuts

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