Skip to content

core.Mechanisms

Narciso edited this page Mar 17, 2020 · 1 revision

This is what we get back after init

KafkaAvro.init(Settings).then( Mechanisms => {
    // ..
} , error => {
  // ..
});

Mechanisms.schemas

This is the schema pool

Mechanisms.send

Send a message to a topic

Mechanisms.send = function(){
  // logic
};

Mechanisms.addConsumer

Create a new consumer

Mechanisms.addConsumer = function(){
  // logic
};

Mechanisms.addProducer

Create a new producer

Mechanisms.addProducer = function(){
  // logic
};

Clone this wiki locally