mq

package
v0.0.0-...-f592e1d Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 8 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 {
	Config      structs.NatsConfig
	Conn        *nats.Conn
	EncodedConn *nats.EncodedConn
	Error       error
}

func (*Nats) Connect

func (n *Nats) Connect() error

func (*Nats) Init

func (n *Nats) Init(cfg structs.NatsConfig) *Nats

func (*Nats) SendAwaitResponse

func (n *Nats) SendAwaitResponse(channel string, message *messages.Message) (*messages.Message, error)

func (*Nats) SendAwaitResponseMulti

func (n *Nats) SendAwaitResponseMulti(channel string, message *messages.Message) ([]*messages.Message, error)

func (*Nats) SendAwaitResponseMultiSingle

func (n *Nats) SendAwaitResponseMultiSingle(channel string, message *messages.Message) ([]*messages.Message, error)

Jump to

Keyboard shortcuts

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