nats

package
v0.0.0-...-28926d1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

func NewNatsBroker

func NewNatsBroker(cfg config.Nats, logger logger.Logger) (*Broker, error)

func (*Broker) Publish

func (b *Broker) Publish(_ context.Context, topic string, message []byte) error

func (*Broker) SubscribeQueue

func (b *Broker) SubscribeQueue(
	ctx context.Context,
	topic,
	group string,
	handle func(ctx context.Context, message []byte) error,
) error

Jump to

Keyboard shortcuts

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