consumer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBuffer

func InitBuffer(bufferSize int) chan Message

Types

type Consumer

type Consumer struct {
	Context        context.Context
	PubSubClient   *pubsub.Client
	SubscriberName string
	TopicID        string
	Buffer         chan Message
}

func (*Consumer) Pull

func (c *Consumer) Pull()

type Message

type Message struct {
	Data       string
	Attributes map[string]string
}

Jump to

Keyboard shortcuts

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