Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is a function that configures the process.
func WithFeatures ¶
func WithPublishFn ¶
type WrappedInMemory ¶
Wrapped is a wrapper around inmemory pubsub to ensure that Init and Close are called only once.
func (*WrappedInMemory) Close ¶
func (w *WrappedInMemory) Close() error
func (*WrappedInMemory) Features ¶ added in v1.18.0
func (w *WrappedInMemory) Features() []pubsub.Feature
Features overrides the embedded inmemory.PubSub's static feature list so test framework consumers can inject features via WithFeatures. Without this override the embedded PubSub's Features() would shadow w.features and WithFeatures would be silently ignored.
func (*WrappedInMemory) Publish ¶
func (w *WrappedInMemory) Publish(ctx context.Context, req *pubsub.PublishRequest) error
Click to show internal directories.
Click to hide internal directories.