mq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amqp

type Amqp struct {
	emission.Emitter
	// contains filtered or unexported fields
}

func New

func New(id, url string) *Amqp

func (*Amqp) BroadCast

func (a *Amqp) BroadCast(msg map[string]interface{}) error

func (*Amqp) Close

func (a *Amqp) Close()

func (*Amqp) ConsumeBroadcast

func (a *Amqp) ConsumeBroadcast() (<-chan amqp.Delivery, error)

func (*Amqp) ConsumeRPC

func (a *Amqp) ConsumeRPC() (<-chan amqp.Delivery, error)

func (*Amqp) RpcCall

func (a *Amqp) RpcCall(id string, msg map[string]interface{}, corrID string) (string, error)

func (*Amqp) RpcCallWithResp

func (a *Amqp) RpcCallWithResp(id string, msg map[string]interface{}, callback interface{}) error

Jump to

Keyboard shortcuts

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