buffered

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 9 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 ProtoBroadcaster added in v0.14.7

type ProtoBroadcaster[M proto.Message] struct {
	// contains filtered or unexported fields
}

func NewProtoBroadcaster added in v0.14.7

func NewProtoBroadcaster[M proto.Message](
	logger log.Logger,
	bufferSize int,
	retryInterval time.Duration,
	rebroadcastStrategy RebroadcastStrategy[M],
) ProtoBroadcaster[M]

func (ProtoBroadcaster[M]) Broadcast added in v0.14.7

func (b ProtoBroadcaster[M]) Broadcast(ctx context.Context, msg M)

func (ProtoBroadcaster[M]) Loop added in v0.14.7

func (b ProtoBroadcaster[M]) Loop(ctx context.Context, topic *pubsub.Topic)

type RebroadcastStrategy added in v0.15.2

type RebroadcastStrategy[M proto.Message] interface {
	Receive(msg M, msgBytes []byte) rebroadcastMessages
}

func NewRebroadcastStrategy added in v0.15.2

func NewRebroadcastStrategy[M proto.Message, K comparable](rebroadcastInterval time.Duration, getKey func(M) K) RebroadcastStrategy[M]

type TopicSubscription

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

func NewTopicSubscription

func NewTopicSubscription(
	logger log.Logger,
	bufferSize int,
	callback func(context.Context, *pubsub.Message),
) TopicSubscription

func (TopicSubscription) Loop

func (b TopicSubscription) Loop(ctx context.Context, topic *pubsub.Topic)

Jump to

Keyboard shortcuts

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