UNPKG

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.

8 lines (7 loc) 263 B
import { Metadata } from '../metadata'; import { Message } from '../types'; export type Partition = (message: Message) => number; export type Partitioner = (context: { metadata: Metadata; }) => Partition; export declare const defaultPartitioner: Partitioner;