broker

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 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

This section is empty.

Types

type Broker

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

func New

func New(t *testing.T, opts ...Option) *Broker

func (*Broker) Cleanup

func (b *Broker) Cleanup(t *testing.T)

func (*Broker) DaprdOptions

func (b *Broker) DaprdOptions(t *testing.T, componentName string, opts ...daprd.Option) []daprd.Option

func (*Broker) IsPaused added in v1.17.7

func (b *Broker) IsPaused() bool

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

func (*Broker) PauseCalled added in v1.17.7

func (b *Broker) PauseCalled() int64

PauseCalled reports how many times the runtime invoked Pause on the pluggable server. Used by tests asserting the pause-and-drain shutdown path was exercised.

func (*Broker) PauseStarted added in v1.17.7

func (b *Broker) PauseStarted() <-chan struct{}

PauseStarted returns a channel that is closed the first time Pause is called. Tests use this to wait for the runtime's shutdown path to invoke Pause without polling.

func (*Broker) PubSub

func (b *Broker) PubSub() *pubsub.PubSub

func (*Broker) PublishHelloWorld

func (b *Broker) PublishHelloWorld(topic string) <-chan *compv1.PullMessagesRequest

func (*Broker) Run

func (b *Broker) Run(t *testing.T, ctx context.Context)

func (*Broker) Socket

func (b *Broker) Socket() *socket.Socket

type Option added in v1.17.7

type Option func(*brokerOptions)

Option configures broker creation.

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 majority of pubsub components.

Jump to

Keyboard shortcuts

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