mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks contains mocks for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventStore

func NewEventStore() events.EventStore

func NewPublisher

func NewPublisher() messaging.Publisher

NewPublisher returns mock message publisher.

Types

type MockEventStore

type MockEventStore struct{}

func (MockEventStore) Connect

func (es MockEventStore) Connect(ctx context.Context, clientID string) error

func (MockEventStore) Disconnect

func (es MockEventStore) Disconnect(ctx context.Context, clientID string) error

type MockPublisher

type MockPublisher struct{}

func (MockPublisher) Close

func (pub MockPublisher) Close() error

func (MockPublisher) Publish

func (pub MockPublisher) Publish(ctx context.Context, topic string, msg *messaging.Message) error

Jump to

Keyboard shortcuts

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