This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Kafka, Producer, Partitioners } from 'kafkajs'; | |
export class KafkaProducer{ | |
private kafka: Kafka; | |
private producer: Producer; | |
private brokers: string[]; | |
private crashes: number; | |
private maxCrashes: number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {KafkaConsumer} from "./kafkaConsumer"; | |
import jwt from 'jsonwebtoken'; | |
export class ServiceConsumer{ | |
private kafkaConsumer: KafkaConsumer; | |
constructor(){ | |
//Create the Kafka consumer instance and subscribe to the topics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Kafka, | |
Consumer, | |
MessageSetEntry, | |
RecordBatchEntry, | |
ConsumerSubscribeTopics, | |
ITopicConfig | |
} from 'kafkajs'; | |
import { v4 as uuidv4 } from 'uuid'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Basic Commit Notepad | |
*/ | |
// $ node committer.js [branch] | |
const { exec } = require("child_process"); | |
const branch = process.argv[2] ? process.argv[2] : 'master'; //Master by default | |
const now = new Date(); | |
const date = `${now.getDate()}.${now.getMonth() + 1}.${now.getFullYear()}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm repo add external-secrets https://charts.external-secrets.io |