Packages · @purista/amqpbridge
@purista/amqpbridge
Package for using a AMQP broker like rabbitMQ as event bridge.
Signature
@purista/amqpbridge Examples
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 = void Configuration for AmqpBridge.
Encoder
Types
type Encoder = Record<string, EncoderFunctions> Map of content-type to codec implementation. Example key: `application/json`.
EncoderFunctions
Types
type EncoderFunctions = void Encode/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 = void Encrypt/decrypt contract for one content-encoding implementation.
PausedSubscriptionState
Types
type PausedSubscriptionState = void Runtime pause metadata for a subscription consumer managed by the AMQP bridge.
RegisteredSubscription
Types
type RegisteredSubscription = void Consumer registration tracked by the AMQP bridge for cleanup and retry handling.
Variables
1 entry
puristaVersion
Variables
const puristaVersion: "3.0.1" The PURISTA package version embedded in the published runtime build.
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 AmqpBridge EventBridge implementation for AMQP brokers such as RabbitMQ.