nats

package
v0.0.0-...-7538a8c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nats

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

func InitConnection

func InitConnection(natsAddress, username, password string, logger logger.Logger) Nats

func (Nats) GetNatsClient

func (r Nats) GetNatsClient() *nats.Conn

func (Nats) Publish

func (r Nats) Publish(subject string, body []byte) error

func (Nats) RegisterHandlerConsumerGroup

func (r Nats) RegisterHandlerConsumerGroup(subject, groupId string, workerCount int, cb nats.MsgHandler) error

Jump to

Keyboard shortcuts

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