subscriber

package
v1.14.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInitialHealth added in v1.14.0

func WithInitialHealth(health bool) func(*options)

func WithListTopicSubscriptions added in v1.13.2

func WithListTopicSubscriptions(fn func(ctx context.Context, in *emptypb.Empty) (*rtv1.ListTopicSubscriptionsResponse, error)) func(*options)

Types

type Option

type Option func(*options)

type Subscriber

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

func New

func New(t *testing.T, fopts ...Option) *Subscriber

func (*Subscriber) AssertBulkEventChanLen added in v1.13.2

func (s *Subscriber) AssertBulkEventChanLen(t *testing.T, l int)

func (*Subscriber) AssertEventChanLen

func (s *Subscriber) AssertEventChanLen(t *testing.T, l int)

func (*Subscriber) Cleanup

func (s *Subscriber) Cleanup(t *testing.T)

func (*Subscriber) ExpectPublishError

func (s *Subscriber) ExpectPublishError(t *testing.T, ctx context.Context, daprd *daprd.Daprd, req *rtv1.PublishEventRequest)

func (*Subscriber) ExpectPublishNoReceive

func (s *Subscriber) ExpectPublishNoReceive(t *testing.T, ctx context.Context, daprd *daprd.Daprd, req *rtv1.PublishEventRequest)

func (*Subscriber) ExpectPublishReceive

func (s *Subscriber) ExpectPublishReceive(t *testing.T, ctx context.Context, daprd *daprd.Daprd, req *rtv1.PublishEventRequest)

func (*Subscriber) Port

func (s *Subscriber) Port(t *testing.T) int

func (*Subscriber) Receive

func (s *Subscriber) Receive(t *testing.T, ctx context.Context) *rtv1.TopicEventRequest

func (*Subscriber) ReceiveBulk added in v1.13.2

func (s *Subscriber) ReceiveBulk(t *testing.T, ctx context.Context) *rtv1.TopicEventBulkRequest

func (*Subscriber) Run

func (s *Subscriber) Run(t *testing.T, ctx context.Context)

func (*Subscriber) SetHealth added in v1.14.0

func (s *Subscriber) SetHealth(healthy bool)

Jump to

Keyboard shortcuts

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