6.2.0 • Published 4 years ago

toto-event-publisher v6.2.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Toto Event Publisher

This is a npm library to be used to publish to a Kafka topic.

When including this through require(), a new TotoEventPublisher instance will be automatically created and it will be possible to publish events to kafka.

Before publishing events, the topics need to be registered.

Typical usage:

var totoEventPublisher = require('./TotoEventPublisher');
totoEventPublisher.registerTopic({topicName: 'trainingSessionsCreated', microservice: 'training-session'}).then(() => {}, (err) => {console.log(err);});

// Post event
let event = {...};

totoEventPublisher.publishEvent('trainingSessionsCreated', event);
6.1.2

4 years ago

6.2.0

4 years ago

6.1.1

5 years ago

6.1.0

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago