consumer

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 8 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() error

Subscribe to subscribe.

Jump to

Keyboard shortcuts

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