File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,20 @@ export class ProducerStream extends Writable {
145145 _writev ( chunks : Chunk [ ] , cb : ( error : any , data : any ) => any ) : void ;
146146}
147147
148+ export class Admin extends EventEmitter {
149+ constructor ( kafkaClient : KafkaClient ) ;
150+
151+ listTopics ( cb ?: ( ) => void ) : void ;
152+
153+ listGroups ( cb ?: ( ) => void ) : void ;
154+
155+ describeGroups ( consumerGroups : ConsumerGroup [ ] , cb ?: ( ) => void ) : void ;
156+
157+ createTopics ( topics : string [ ] , cb ?: ( ) => void ) : void ;
158+
159+ describeConfigs ( payload : { resources : Resource [ ] , includeSynonyms ?: boolean } , cb ?: ( ) => void ) : void ;
160+ }
161+
148162// # Interfaces
149163
150164export interface Message {
@@ -348,3 +362,14 @@ export interface MetadataResponse extends Array<BrokerMetadataResponse|ClusterMe
348362 0 : BrokerMetadataResponse ;
349363 1 : ClusterMetadataResponse ;
350364}
365+
366+ export enum RESOURCE_TYPES {
367+ topic = 'topic' ,
368+ broker = 'broker'
369+ }
370+
371+ export interface Resource {
372+ resourceType : RESOURCE_TYPES ;
373+ resourceName : string ,
374+ configNames : string ,
375+ }
You can’t perform that action at this time.
0 commit comments