messaging

package
v0.0.301 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageBroker

type MessageBroker struct {
	URL      string
	Username string
	Password string

	NatsConnection *nats.Conn
	// contains filtered or unexported fields
}

func (*MessageBroker) CloseConnection

func (mb *MessageBroker) CloseConnection()

func (*MessageBroker) DeSubscribeAsync

func (mb *MessageBroker) DeSubscribeAsync(topic string)

func (*MessageBroker) Publish

func (mb *MessageBroker) Publish(topic string, payload []byte)

func (*MessageBroker) PublishRequestAndWait

func (mb *MessageBroker) PublishRequestAndWait(topic string, payload []byte, timeout time.Duration) (*nats.Msg, error)

func (*MessageBroker) StartMessageBrokerConnection

func (mb *MessageBroker) StartMessageBrokerConnection(servicename string)

func (*MessageBroker) SubscribeAsync

func (mb *MessageBroker) SubscribeAsync(topic string, callback nats.MsgHandler)

func (*MessageBroker) SubscribeQueueAsync

func (mb *MessageBroker) SubscribeQueueAsync(topic string, queue string, callback nats.MsgHandler)

Jump to

Keyboard shortcuts

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