sub

package
v0.0.0-...-3d0e6ac Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 11 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
}

func GetSubscriberByConfig

func GetSubscriberByConfig(
	ctx context.Context,
	cfg *config.Config,
	wmLogger watermill.LoggerAdapter,
	logger *zap.Logger,
) (*Subscriber, error)

func NewSubscriber

func NewSubscriber(c context.Context, sub message.Subscriber, logger *zap.Logger) *Subscriber

func (*Subscriber) Close

func (s *Subscriber) Close() error

func (*Subscriber) Handler

func (s *Subscriber) Handler(msg *message.Message) error

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(ctx context.Context, topic string) (<-chan *message.Message, error)

Jump to

Keyboard shortcuts

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