implqueue

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubsubQueue

func NewPubsubQueue(config PubsubConfigs) (goduck.MessagePool, error)

NewPubsubQueue creates a new goduck.MessagePool that reads from pubsub. Deprecated: use pubsubqueue.New instead

Types

type MockQueue

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

func NewDefaultQueue

func NewDefaultQueue(nElems int) *MockQueue

func NewMock

func NewMock(items [][]byte) *MockQueue

func (MockQueue) Close

func (m MockQueue) Close() error

func (MockQueue) Done

func (m MockQueue) Done(ctx context.Context, msg goduck.RawMessage) error

func (MockQueue) Failed

func (m MockQueue) Failed(ctx context.Context, msg goduck.RawMessage) error

func (MockQueue) IsEmpty

func (m MockQueue) IsEmpty() bool

IsEmpty tests if all elements in the queue are consumed

func (*MockQueue) Next

func (m *MockQueue) Next(ctx context.Context) (goduck.RawMessage, error)

type PubsubConfigs

type PubsubConfigs struct {
	ProjectID    string
	Subscription string
}

PubsubConfigs contains the configs for pubsub connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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