Properties
Private conn
conn: null | Connection
Private exchange
exchange: string
Private mgmturl
mgmturl: string
Private pch
pch: Bluebird < Channel >
Private Optional prefix
prefix: string
Private vhost
vhost: string
Methods
_onQueue
Parameters
queueName: string
handler: QueueCallback
Returns Promise < void >
_onRpc
_onRpc( queueName: string , options: RabbitOnRpcOptions , handler: RpcReplyCallback ) : Promise < void >
Parameters
queueName: string
handler: RpcReplyCallback
Returns Promise < void >
Private _onTopic
Parameters
topic: string
handler: PublishCallback
Returns Promise < Consume >
Private encodeContent
encodeContent( content: unknown ) : Buffer
Parameters
Returns Buffer
Private getContentType
getContentType( content: unknown ) : string
Parameters
Returns string
getQueues
getQueues( ) : Promise < QueueState [] >
Returns Promise < QueueState [] >
onQueue
onQueue( queueName: string , handler: QueueCallback ) : Promise < void >
onQueue( queueName: string , options: RabbitOnQueueOptions , handler: QueueCallback ) : Promise < void >
Parameters
queueName: string
handler: QueueCallback
Returns Promise < void >
Parameters
queueName: string
handler: QueueCallback
Returns Promise < void >
onQueueCreated
onQueueCreated( handler: ( queue_name: string , properties: MessageProperties ) => void ) : void
Parameters
handler: ( queue_name: string , properties: MessageProperties ) => void
( queue_name: string , properties: MessageProperties ) : void
Parameters
queue_name: string
properties: MessageProperties
Returns void
Returns void
onQueueDeleted
onQueueDeleted( handler: ( queue_name: string , properties: MessageProperties ) => void ) : void
Parameters
handler: ( queue_name: string , properties: MessageProperties ) => void
( queue_name: string , properties: MessageProperties ) : void
Parameters
queue_name: string
properties: MessageProperties
Returns void
Returns void
onRpc
onRpc( queueName: string , handler: RpcReplyCallback ) : Promise < void >
onRpc( queueName: string , options: RabbitOnRpcOptions , handler: RpcReplyCallback ) : Promise < void >
Parameters
queueName: string
handler: RpcReplyCallback
Returns Promise < void >
Parameters
queueName: string
handler: RpcReplyCallback
Returns Promise < void >
onTopic
onTopic( topic: string , handler: PublishCallback ) : Promise < Consume >
onTopic( topic: string , options: RabbitOnTopicOptions , handler: PublishCallback ) : Promise < Consume >
Parameters
topic: string
handler: PublishCallback
Returns Promise < Consume >
Parameters
topic: string
handler: PublishCallback
Returns Promise < Consume >
Private parseContent
parseContent( content: Buffer , content_type?: string ) : unknown
Parameters
content: Buffer
Optional content_type: string
Returns unknown
publishRpc
publishRpc( queueName: string , content?: unknown , options?: Publish ) : Promise < RabbitMessage >
Parameters
queueName: string
content: unknown = ...
options: Publish = {}
publishTopic
publishTopic( topic: string , content?: unknown , options?: Publish ) : Promise < boolean >
Parameters
topic: string
content: unknown = ...
options: Publish = {}
Returns Promise < boolean >
Private resolveTopicName
resolveTopicName( topic_name: string ) : string
Parameters
Returns string
Legend
Class
Constructor
Property
Method
Namespace
Function
Type alias
Private property
Private method
Class representing the RabbitManager object.