Packages · @purista/amqpbridge
@purista/amqpbridge
Package for using a AMQP broker like rabbitMQ as event bridge.
Signature
@purista/amqpbridgeExamples
import { AmqpBridge } from '@purista/amqpbridge'
// create and init our eventbridge
const eventBridge = new AmqpBridge()
await eventBridge.start()Type Aliases
7 entries
AmqpBridgeConfig
Types
type AmqpBridgeConfig = voidConfiguration for AmqpBridge.
Encoder
Types
type Encoder = Record<string, EncoderFunctions>Map of content-type to codec implementation. Example key: `application/json`.
EncoderFunctions
Types
type EncoderFunctions = voidEncode/decode contract for one content-type codec.
Encrypter
Types
type Encrypter = Record<string, EncryptFunctions>Map of content-encoding to encryption implementation. Example key: `utf-8`.
EncryptFunctions
Types
type EncryptFunctions = voidEncrypt/decrypt contract for one content-encoding implementation.
PausedSubscriptionState
Types
type PausedSubscriptionState = voidRuntime pause metadata for a subscription consumer managed by the AMQP bridge.
RegisteredSubscription
Types
type RegisteredSubscription = voidConsumer registration tracked by the AMQP bridge for cleanup and retry handling.
Variables
1 entry
puristaVersion
Variables
const puristaVersion: "3.2.3"Functions
3 entries
deserializeOtpFromAmqpHeader
Functions
deserializeOtpFromAmqpHeader(logger: Logger, message: ConsumeMessage | null, encrypter: Encrypter, encoder: Encoder): Promise<Context | undefined>getDefaultConfig
Functions
getDefaultConfig(): Complete<AmqpBridgeConfig> & { exchangeName: string; url: string }serializeOtpForAmqpHeader
Functions
serializeOtpForAmqpHeader(header: Record<string, string | undefined>): Record<string, string | undefined>Event bridge
1 entry
AmqpBridge
Classes
class AmqpBridgeEventBridge implementation for AMQP brokers such as RabbitMQ.