kafkamock

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() repository.Kafka

Types

type Impl

type Impl struct {
	Callback repository.ReceiverCallback

	Recording []repository.UpdateEvent
}

func (*Impl) IsKafka

func (r *Impl) IsKafka() bool

func (*Impl) Receive

func (r *Impl) Receive(incomingEvent repository.UpdateEvent)

func (*Impl) Reset

func (r *Impl) Reset()

func (*Impl) Send

func (r *Impl) Send(_ context.Context, event repository.UpdateEvent) error

func (*Impl) Setup added in v0.33.0

func (r *Impl) Setup() error

func (*Impl) StartReceiveLoop

func (r *Impl) StartReceiveLoop(ctx context.Context) error

func (*Impl) SubscribeIncoming

func (r *Impl) SubscribeIncoming(_ context.Context, callback repository.ReceiverCallback) error

func (*Impl) Teardown added in v0.33.0

func (r *Impl) Teardown()

Jump to

Keyboard shortcuts

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