forked from tulios/kafkajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
36 lines (35 loc) · 1.26 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const Kafka = require('./src')
const PartitionAssigners = require('./src/consumer/assigners')
const AssignerProtocol = require('./src/consumer/assignerProtocol')
const Partitioners = require('./src/producer/partitioners')
const Compression = require('./src/protocol/message/compression')
const ResourceTypes = require('./src/protocol/resourceTypes')
const ConfigResourceTypes = require('./src/protocol/configResourceTypes')
const ConfigSource = require('./src/protocol/configSource')
const AclResourceTypes = require('./src/protocol/aclResourceTypes')
const AclOperationTypes = require('./src/protocol/aclOperationTypes')
const AclPermissionTypes = require('./src/protocol/aclPermissionTypes')
const ResourcePatternTypes = require('./src/protocol/resourcePatternTypes')
const { LEVELS } = require('./src/loggers')
module.exports = {
Kafka,
PartitionAssigners,
AssignerProtocol,
Partitioners,
logLevel: LEVELS,
CompressionTypes: Compression.Types,
CompressionCodecs: Compression.Codecs,
/**
* @deprecated
* @see https://github.com/tulios/kafkajs/issues/649
*
* Use ConfigResourceTypes or AclResourceTypes instead.
*/
ResourceTypes,
ConfigResourceTypes,
AclResourceTypes,
AclOperationTypes,
AclPermissionTypes,
ResourcePatternTypes,
ConfigSource,
}