consumer

package
v0.11.14 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

Consumer contains functions for consumer.

func New

func New(service service.Service, ps pubsub.PubSub, topic string) *Consumer

New to create new consumer.

func (*Consumer) Close

func (c *Consumer) Close() error

Close to stop consumer connection.

func (*Consumer) Subscribe

func (c *Consumer) Subscribe(nrApp *newrelic.Application) error

Subscribe to start subscribing to topic.

Jump to

Keyboard shortcuts

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