Preparing search index...
The search index is not available
@tarpit/rabbitmq
@tarpit/rabbitmq
RabbitMessage
Class RabbitMessage<T>
Type Parameters
T
Hierarchy
Judgement
<
T
extends
object
?
T
:
{}
>
RabbitMessage
Implements
ConsumeMessage
Index
Constructors
constructor
Properties
content
data
fields
mime
properties
text
Methods
do_
if
ensure
get
get_
if
on_
error
Constructors
constructor
new
Rabbit
Message
<
T
>
(
message
,
mime
)
:
RabbitMessage
<
T
>
Type Parameters
T
Parameters
message
:
ConsumeMessage
mime
:
MIMEContent
<
any
>
Returns
RabbitMessage
<
T
>
Properties
Readonly
content
content
:
Buffer
data
data
:
undefined
|
(
T
extends
object
?
T
:
{}
)
Readonly
fields
fields
:
ConsumeMessageFields
Readonly
mime
mime
:
MIMEContent
<
any
>
Readonly
properties
properties
:
MessageProperties
Readonly
text
text
:
undefined
|
string
Methods
do_
if
do_
if
<
M
,
P
>
(
prop
,
matcher
,
then
)
:
void
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
then
:
(
(
res
)
=>
void
)
(
res
)
:
void
Parameters
res
:
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
Returns
void
Returns
void
ensure
ensure
<
M
,
P
>
(
prop
,
matcher
,
on_error
?
)
:
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
Optional
on_error
:
OnJudgementError
Returns
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
get
get
(
)
:
T
extends
object
?
T
:
{}
Returns
T
extends
object
?
T
:
{}
get
<
P
>
(
path
)
:
undefined
|
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
Type Parameters
P
extends
string
Parameters
path
:
P
Returns
undefined
|
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
get
<
P
>
(
path
,
def
)
:
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
Type Parameters
P
extends
string
Parameters
path
:
P
def
:
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
Returns
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
get_
if
get_
if
<
M
,
P
>
(
prop
,
matcher
)
:
undefined
|
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
Returns
undefined
|
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
get_
if
<
M
,
P
>
(
prop
,
matcher
,
def
)
:
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
def
:
MatcherInferType
<
M
>
Returns
Exclude
<
PathValue
<
T
extends
object
?
T
:
{}
,
P
>
,
undefined
>
Protected
on_
error
on_
error
(
prop
,
desc
,
on_error
?
)
:
never
Parameters
prop
:
string
desc
:
MismatchDescription
Optional
on_error
:
(
(
prop
,
desc
)
=>
string
)
(
prop
,
desc
)
:
string
Parameters
prop
:
string
desc
:
MismatchDescription
Returns
string
Returns
never
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
src
errors
ack.ts
Ack
ack_message
message-dead.ts
MessageDead
MessageDeadDesc
kill_message
message-requeue.ts
MessageRequeue
MessageRequeueDesc
requeue_message
builtin
confirm-producer.ts
ConfirmProducer
producer.ts
Producer
rabbit-message.ts
RabbitMessage
services
rabbit-define.ts
RabbitDefine
ExchangeOptions
QueueOptions
DefaultRabbitmqExchange
RabbitDefineToken
rabbit-retry-strategy.ts
RabbitRetryStrategy
annotations
consume.ts
Consume
Consume
enqueue.ts
Enqueue
Enqueue
publish.ts
Publish
Publish
tp-consumer.ts
TpConsumer
TpConsumer
tp-producer.ts
TpProducer
TpProducer
rabbitmq-module.ts
RabbitmqModule
index.ts
AMQPConnect
Generated using
TypeDoc