pubsub

package
v1.17.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

Option is a function that configures the process.

func WithPausable added in v1.17.7

func WithPausable() Option

WithPausable opts the pluggable server in to the Pause/Resume RPCs. Default is non-pausable (returns codes.Unimplemented), matching the vast majority of pubsub components.

func WithPubSub

func WithPubSub(pubsub pubsub.PubSub) Option

func WithPullMessagesChannel added in v1.13.2

func WithPullMessagesChannel(reqCh chan<- *compv1pb.PullMessagesRequest, resCh <-chan *compv1pb.PullMessagesResponse) Option

func WithSocket added in v1.13.2

func WithSocket(socket *socket.Socket) Option

type PubSub

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

PubSub is a pluggable pubsub component for Dapr.

func New

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

func (*PubSub) Cleanup

func (p *PubSub) Cleanup(t *testing.T)

func (*PubSub) IsPaused added in v1.17.7

func (p *PubSub) IsPaused() bool

IsPaused reports whether the pluggable server is currently in the paused state.

func (*PubSub) PauseCalled added in v1.17.7

func (p *PubSub) PauseCalled() int64

PauseCalled reports how many times Pause was invoked on the pluggable server. Exposed for integration tests that assert the runtime's pause-and-drain shutdown path was exercised.

func (*PubSub) PauseStarted added in v1.17.7

func (p *PubSub) PauseStarted() <-chan struct{}

PauseStarted returns a channel closed the first time Pause is called.

func (*PubSub) Run

func (p *PubSub) Run(t *testing.T, ctx context.Context)

func (*PubSub) SocketName

func (p *PubSub) SocketName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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