subscriber

package
v0.0.0-...-b981748 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

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

Subscriber is a message subscriber

func NewSubscriber

func NewSubscriber(logger *zap.Logger, brokerAddr string) *Subscriber

NewSubscriber returns a new Subscriber

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(channel string) error

Subscribe subscribes to a channel

Jump to

Keyboard shortcuts

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