mq_test

package
v0.0.0-...-39992ae Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMqMock

func NewMqMock(
	createReader func(groupId string) *kafka.Reader,
	conn func() *kafka.Conn,
	kafkaUri func() string,
	topic func() string,
) mq.MQ

Types

type MqMock

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

func (*MqMock) Conn

func (m *MqMock) Conn() *kafka.Conn

func (*MqMock) CreateReader

func (m *MqMock) CreateReader(groupId string) *kafka.Reader

func (*MqMock) KafkaUri

func (m *MqMock) KafkaUri() string

func (*MqMock) Topic

func (m *MqMock) Topic() string

Jump to

Keyboard shortcuts

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