Help us shape the future of Go! Take the 2026 Go Developer Survey

pubsub

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 12 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 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) 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