consumer

package
v0.0.0-...-0b6db94 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmpty = errors.New("no messages in queue")

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Next() (library.Package, error)
}

type PubSubConsumer

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

func NewPubSubConsumer

func NewPubSubConsumer(ctx context.Context, url string) (*PubSubConsumer, error)

func (*PubSubConsumer) Next

func (c *PubSubConsumer) Next() (library.Package, error)

Jump to

Keyboard shortcuts

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