inmemclient

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(options ...streamconfig.Option) (stream.Consumer, error)

NewConsumer returns a new inmem consumer.

func NewProducer

func NewProducer(options ...streamconfig.Option) (stream.Producer, error)

NewProducer returns a new inmem producer.

func TestConsumer

func TestConsumer(tb testing.TB, s stream.Store, options ...streamconfig.Option) (stream.Consumer, func())

TestConsumer returns a new inmem consumer to be used in test cases. It also returns a function that should be deferred to clean up resources.

You can either pass a pre-configured inmemstore to this function as its second argument, or pass in `nil`, to have one be instantiated for you.

You can optionally provide extra options to be used when instantiating the consumer.

func TestProducer

func TestProducer(tb testing.TB, s stream.Store, options ...streamconfig.Option) (stream.Producer, func())

TestProducer returns a new inmem producer to be used in test cases. It also returns a function that should be deferred to clean up resources.

You can either pass a pre-configured inmemstore to this function as its second argument, or pass in `nil`, to have one be instantiated for you.

Types

This section is empty.

Jump to

Keyboard shortcuts

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