stubs

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package stubs contains stubs for the eventer package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubEventer

type StubEventer struct {
	Topics []string
	Sent   []*message.Message
}

StubEventer is an eventer that's useful for testing.

func (*StubEventer) Close

func (*StubEventer) Close() error

Close implements events.Interface.

func (*StubEventer) ConsumeEvents

func (*StubEventer) ConsumeEvents(...interfaces.Consumer)

ConsumeEvents implements events.Interface.

func (*StubEventer) Publish

func (s *StubEventer) Publish(topic string, messages ...*message.Message) error

Publish implements events.Interface.

func (*StubEventer) Register

Register implements events.Interface.

func (*StubEventer) Run

Run implements events.Interface.

func (*StubEventer) Running

func (*StubEventer) Running() chan struct{}

Running implements events.Interface.

Jump to

Keyboard shortcuts

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