@qualithm/kafka-client - v0.1.6
    Preparing search index...

    Type Alias Serializer<T>

    Serializes a value of type T to bytes for producing.

    type Serializer<T> = {
        serialize: (value: T, topic: string) => Uint8Array;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    serialize: (value: T, topic: string) => Uint8Array

    Serialize a value to bytes.

    Type Declaration

      • (value: T, topic: string): Uint8Array
      • Parameters

        • value: T

          The value to serialize.

        • topic: string

          The topic the message will be produced to (for topic-aware serialization).

        Returns Uint8Array

        The serialized bytes.