stream

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedSizeObserver

type FixedSizeObserver[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewFixedSizeObserver

func NewFixedSizeObserver[T interface{}](
	ctx context.Context,
	maxSize int,
	waitElementsInterval time.Duration,
	waitSubscribersInterval time.Duration,
	skipElements bool,
	skipWithoutSubscribers bool,
	acquiringRequired bool,
	retriesMaxCount int,
) *FixedSizeObserver[T]

func (*FixedSizeObserver[T]) Ack added in v0.0.2

func (q *FixedSizeObserver[T]) Ack(msgId uint64)

func (*FixedSizeObserver[T]) GetLength

func (q *FixedSizeObserver[T]) GetLength() int

func (*FixedSizeObserver[T]) Publish

func (q *FixedSizeObserver[T]) Publish(element T) uint64

func (*FixedSizeObserver[T]) Release

func (q *FixedSizeObserver[T]) Release()

func (*FixedSizeObserver[T]) Subscribe

func (q *FixedSizeObserver[T]) Subscribe(ctx context.Context) <-chan T

func (*FixedSizeObserver[T]) WaitAck added in v0.0.2

func (q *FixedSizeObserver[T]) WaitAck(msgId uint64)

Jump to

Keyboard shortcuts

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