testutils

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestBus

func NewTestBus(next psrpc.MessageBus, opts ...TestBusOption) psrpc.MessageBus

Types

type AtomicFailureRate

type AtomicFailureRate struct {
	// contains filtered or unexported fields
}

func NewAtomicFailureRate

func NewAtomicFailureRate(v float64) AtomicFailureRate

func (*AtomicFailureRate) Rate

func (g *AtomicFailureRate) Rate() float64

func (*AtomicFailureRate) SetRate

func (g *AtomicFailureRate) SetRate(v float64)

type PublishHandler

type PublishHandler = bus.PublishHandler

type PublishInterceptor

type PublishInterceptor = bus.PublishInterceptor

type ReadHandler

type ReadHandler = bus.ReadHandler

type SubscribeInterceptor

type SubscribeInterceptor = bus.SubscribeInterceptor

type TestBusOption

type TestBusOption = bus.TestBusOption

func WithPublishInterceptor

func WithPublishInterceptor(interceptor PublishInterceptor) TestBusOption

func WithSubscribeInterceptor

func WithSubscribeInterceptor(interceptor SubscribeInterceptor) TestBusOption

func WithUnreliableBus

func WithUnreliableBus(rate AtomicFailureRate) TestBusOption

func WithUnreliableBusChannel

func WithUnreliableBusChannel(rate AtomicFailureRate, channelFilter string) TestBusOption

Jump to

Keyboard shortcuts

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