testing

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDispatcherDoNothing

func NewDispatcherDoNothing() dispatcher.NatsDispatcher

Types

type DispatcherDoNothing

type DispatcherDoNothing struct{}

DispatcherDoNothing is a mock which doesn't do anything

func (*DispatcherDoNothing) ProcessChannels

func (s *DispatcherDoNothing) ProcessChannels(_ context.Context, _ []messagingv1.Channel) error

func (*DispatcherDoNothing) Start

func (*DispatcherDoNothing) UpdateSubscriptions

func (s *DispatcherDoNothing) UpdateSubscriptions(ctx context.Context, name, ns string, subscriptions []eventingduckv1.SubscriberSpec, isFinalizer bool) (map[eventingduckv1.SubscriberSpec]error, error)

type DispatcherFailNatssSubscription

type DispatcherFailNatssSubscription struct {
}

DispatcherFailNatssSubscription simulates that natss has a failed subscription

func NewDispatcherFailNatssSubscription

func NewDispatcherFailNatssSubscription() *DispatcherFailNatssSubscription

func (*DispatcherFailNatssSubscription) ProcessChannels

func (*DispatcherFailNatssSubscription) Start

func (*DispatcherFailNatssSubscription) UpdateSubscriptions

func (s *DispatcherFailNatssSubscription) UpdateSubscriptions(ctx context.Context, name, ns string, subscriptions []eventingduckv1.SubscriberSpec, isFinalizer bool) (map[eventingduckv1.SubscriberSpec]error, error)

UpdateSubscriptions returns a failed natss subscription

Jump to

Keyboard shortcuts

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