kafka-ts
Version:
**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.
24 lines (23 loc) • 601 B
TypeScript
export declare const KEY_TYPE: {
GROUP: number;
TRANSACTION: number;
};
type FindCoordinatorRequest = {
keyType: number;
keys: string[];
};
type FindCoordinatorResponse = {
throttleTimeMs: number;
coordinators: {
key: string;
nodeId: number;
host: string;
port: number;
errorCode: number;
errorMessage: string | null;
tags: Record<number, Buffer>;
}[];
tags: Record<number, Buffer>;
};
export declare const FIND_COORDINATOR: import("../utils/api").Api<FindCoordinatorRequest, FindCoordinatorResponse>;
export {};