testutils

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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