Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataTransformer

Package version

Describes the transformations that can be performed to encode/decode the data before sending it on (or receiving it from) the wire.

Hierarchy

  • DataTransformer

Implemented by

Index

Properties

Properties

decode

decode: (body: any) => any
property

{Function} decode A function that takes the body property from an AMQP message and returns the decoded message body. If it cannot decode the body then it returns the body as-is.

Type declaration

    • (body: any): any
    • Parameters

      • body: any

      Returns any

encode

encode: (body: any) => any
property

{Function} encode A function that takes the body property from an EventData object and returns an encoded body (some form of AMQP type).

Type declaration

    • (body: any): any
    • Parameters

      • body: any

      Returns any

Generated using TypeDoc