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

    Type Alias ProtobufCodec

    Pluggable Protobuf codec interface.

    Wraps a Protobuf library (e.g. protobufjs) to provide schema parsing. The codec parses the proto schema string and returns a ProtobufSchema bound to a specific message type.

    type ProtobufCodec = {
        parse: (schemaString: string, messageName: string) => ProtobufSchema;
    }
    Index

    Properties

    Properties

    parse: (schemaString: string, messageName: string) => ProtobufSchema

    Parse a proto schema and bind to a specific message type.

    Type Declaration

      • (schemaString: string, messageName: string): ProtobufSchema
      • Parameters

        • schemaString: string

          Proto schema definition string.

        • messageName: string

          Fully-qualified message type name to encode/decode.

        Returns ProtobufSchema

        Parsed schema with encode/decode methods and message indexes.