publisher

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package publisher is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaPublisher

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

func NewKafkaPublisher

func NewKafkaPublisher(kafkaBroker, kafkaTopic string, msgChan chan consumer.Message) *KafkaPublisher

func (*KafkaPublisher) Init

func (publisher *KafkaPublisher) Init() error

func (*KafkaPublisher) Start

func (publisher *KafkaPublisher) Start()

func (*KafkaPublisher) Stop

func (publisher *KafkaPublisher) Stop() error

type MockPublisher

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

MockPublisher is a mock of Publisher interface.

func NewMockPublisher

func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher

NewMockPublisher creates a new mock instance.

func (*MockPublisher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublisher) Init

func (m *MockPublisher) Init() error

Init mocks base method.

func (*MockPublisher) Start

func (m *MockPublisher) Start()

Start mocks base method.

func (*MockPublisher) Stop

func (m *MockPublisher) Stop() error

Stop mocks base method.

type MockPublisherMockRecorder

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

MockPublisherMockRecorder is the mock recorder for MockPublisher.

func (*MockPublisherMockRecorder) Init

Init indicates an expected call of Init.

func (*MockPublisherMockRecorder) Start

func (mr *MockPublisherMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockPublisherMockRecorder) Stop

Stop indicates an expected call of Stop.

type Publisher

type Publisher interface {
	Init() error
	Start()
	Stop() error
}

Jump to

Keyboard shortcuts

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