nats

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package redis contains the domain concept definitions needed to support Magistrala redis events source service functionality.

It provides the abstraction of the redis stream and its operations.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrEmptyStream is returned when stream name is empty.
	ErrEmptyStream = errors.New("stream name cannot be empty")

	// ErrEmptyConsumer is returned when consumer name is empty.
	ErrEmptyConsumer = errors.New("consumer name cannot be empty")
)

Functions

func NewPublisher

func NewPublisher(ctx context.Context, url, stream string) (events.Publisher, error)

func NewSubscriber

func NewSubscriber(ctx context.Context, url, stream, consumer string, logger *slog.Logger) (events.Subscriber, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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