{"action":"created","comment":{"url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/comments/181787301","pull_request_review_id":112472394,"id":181787301,"diff_hunk":"@@ -31,12 +31,296 @@\n \n 'use strict'\n \n-// TODO:  RDKAFKA Producer code goes here\n+const EventEmitter = require('events')\n+const Logger = require('../logger')\n+const Kafka = require('node-rdkafka')\n+const LimeParser = require('./protocol')\n \n-class Producer {\n-  constructor () {\n+const EVENTS = {\n+  prepared: 'prepared',\n+  fulfill: 'fulfill',\n+  reject: 'reject',\n+  position: 'position',\n+  notification: 'notification',\n+  failed: 'failed',\n+  duplicate: 'duplicate'\n+}\n+\n+const METHOD = {\n+  get: 'get',\n+  post: 'post',\n+  put: 'put',\n+  del: 'delete'\n+}\n+\n+const STATUS = {\n+  success: 'success',\n+  failure: 'failed'\n+}\n+const\n+ENUMS = {\n+  EVENTS,\n+  METHOD,\n+  STATUS\n+}\n+\n+module.exports = ENUMS\n+","path":"src/stream/producer.js","position":85,"original_position":41,"commit_id":"738a3dc5609de791ed8262fee2dcd7204245c13e","original_commit_id":"6fa1827d62c54b6fc42d1a05c2ca6e738d3751c7","user":{"login":"rmothilal","id":16662558,"avatar_url":"https://avatars1.githubusercontent.com/u/16662558?v=4","gravatar_id":"","url":"https://api.github.com/users/rmothilal","html_url":"https://github.com/rmothilal","followers_url":"https://api.github.com/users/rmothilal/followers","following_url":"https://api.github.com/users/rmothilal/following{/other_user}","gists_url":"https://api.github.com/users/rmothilal/gists{/gist_id}","starred_url":"https://api.github.com/users/rmothilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmothilal/subscriptions","organizations_url":"https://api.github.com/users/rmothilal/orgs","repos_url":"https://api.github.com/users/rmothilal/repos","events_url":"https://api.github.com/users/rmothilal/events{/privacy}","received_events_url":"https://api.github.com/users/rmothilal/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-04-16T15:39:08Z","updated_at":"2018-04-16T15:39:08Z","html_url":"https://github.com/mdebarros/central-services-shared/pull/1#discussion_r181787301","pull_request_url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/comments/181787301"},"html":{"href":"https://github.com/mdebarros/central-services-shared/pull/1#discussion_r181787301"},"pull_request":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1"}},"in_reply_to_id":181652406},"pull_request":{"url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1","id":181775946,"html_url":"https://github.com/mdebarros/central-services-shared/pull/1","diff_url":"https://github.com/mdebarros/central-services-shared/pull/1.diff","patch_url":"https://github.com/mdebarros/central-services-shared/pull/1.patch","issue_url":"https://api.github.com/repos/mdebarros/central-services-shared/issues/1","number":1,"state":"open","locked":false,"title":"stream processing base for the producer","user":{"login":"rmothilal","id":16662558,"avatar_url":"https://avatars1.githubusercontent.com/u/16662558?v=4","gravatar_id":"","url":"https://api.github.com/users/rmothilal","html_url":"https://github.com/rmothilal","followers_url":"https://api.github.com/users/rmothilal/followers","following_url":"https://api.github.com/users/rmothilal/following{/other_user}","gists_url":"https://api.github.com/users/rmothilal/gists{/gist_id}","starred_url":"https://api.github.com/users/rmothilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmothilal/subscriptions","organizations_url":"https://api.github.com/users/rmothilal/orgs","repos_url":"https://api.github.com/users/rmothilal/repos","events_url":"https://api.github.com/users/rmothilal/events{/privacy}","received_events_url":"https://api.github.com/users/rmothilal/received_events","type":"User","site_admin":false},"body":"Producer and LIME parser for Stream Processing API","created_at":"2018-04-16T07:39:37Z","updated_at":"2018-04-16T15:39:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fba9a8909eca1ecff0240439993931d78250f5a7","assignee":{"login":"mdebarros","id":11392873,"avatar_url":"https://avatars1.githubusercontent.com/u/11392873?v=4","gravatar_id":"","url":"https://api.github.com/users/mdebarros","html_url":"https://github.com/mdebarros","followers_url":"https://api.github.com/users/mdebarros/followers","following_url":"https://api.github.com/users/mdebarros/following{/other_user}","gists_url":"https://api.github.com/users/mdebarros/gists{/gist_id}","starred_url":"https://api.github.com/users/mdebarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdebarros/subscriptions","organizations_url":"https://api.github.com/users/mdebarros/orgs","repos_url":"https://api.github.com/users/mdebarros/repos","events_url":"https://api.github.com/users/mdebarros/events{/privacy}","received_events_url":"https://api.github.com/users/mdebarros/received_events","type":"User","site_admin":false},"assignees":[{"login":"mdebarros","id":11392873,"avatar_url":"https://avatars1.githubusercontent.com/u/11392873?v=4","gravatar_id":"","url":"https://api.github.com/users/mdebarros","html_url":"https://github.com/mdebarros","followers_url":"https://api.github.com/users/mdebarros/followers","following_url":"https://api.github.com/users/mdebarros/following{/other_user}","gists_url":"https://api.github.com/users/mdebarros/gists{/gist_id}","starred_url":"https://api.github.com/users/mdebarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdebarros/subscriptions","organizations_url":"https://api.github.com/users/mdebarros/orgs","repos_url":"https://api.github.com/users/mdebarros/repos","events_url":"https://api.github.com/users/mdebarros/events{/privacy}","received_events_url":"https://api.github.com/users/mdebarros/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mdebarros/central-services-shared/issues/1/comments","statuses_url":"https://api.github.com/repos/mdebarros/central-services-shared/statuses/738a3dc5609de791ed8262fee2dcd7204245c13e","head":{"label":"rmothilal:feature/#148DesignImplementCommonStreamingLibrary","ref":"feature/#148DesignImplementCommonStreamingLibrary","sha":"738a3dc5609de791ed8262fee2dcd7204245c13e","user":{"login":"rmothilal","id":16662558,"avatar_url":"https://avatars1.githubusercontent.com/u/16662558?v=4","gravatar_id":"","url":"https://api.github.com/users/rmothilal","html_url":"https://github.com/rmothilal","followers_url":"https://api.github.com/users/rmothilal/followers","following_url":"https://api.github.com/users/rmothilal/following{/other_user}","gists_url":"https://api.github.com/users/rmothilal/gists{/gist_id}","starred_url":"https://api.github.com/users/rmothilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmothilal/subscriptions","organizations_url":"https://api.github.com/users/rmothilal/orgs","repos_url":"https://api.github.com/users/rmothilal/repos","events_url":"https://api.github.com/users/rmothilal/events{/privacy}","received_events_url":"https://api.github.com/users/rmothilal/received_events","type":"User","site_admin":false},"repo":{"id":128901859,"name":"central-services-shared","full_name":"rmothilal/central-services-shared","owner":{"login":"rmothilal","id":16662558,"avatar_url":"https://avatars1.githubusercontent.com/u/16662558?v=4","gravatar_id":"","url":"https://api.github.com/users/rmothilal","html_url":"https://github.com/rmothilal","followers_url":"https://api.github.com/users/rmothilal/followers","following_url":"https://api.github.com/users/rmothilal/following{/other_user}","gists_url":"https://api.github.com/users/rmothilal/gists{/gist_id}","starred_url":"https://api.github.com/users/rmothilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmothilal/subscriptions","organizations_url":"https://api.github.com/users/rmothilal/orgs","repos_url":"https://api.github.com/users/rmothilal/repos","events_url":"https://api.github.com/users/rmothilal/events{/privacy}","received_events_url":"https://api.github.com/users/rmothilal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmothilal/central-services-shared","description":"Shared code for central services","fork":true,"url":"https://api.github.com/repos/rmothilal/central-services-shared","forks_url":"https://api.github.com/repos/rmothilal/central-services-shared/forks","keys_url":"https://api.github.com/repos/rmothilal/central-services-shared/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmothilal/central-services-shared/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmothilal/central-services-shared/teams","hooks_url":"https://api.github.com/repos/rmothilal/central-services-shared/hooks","issue_events_url":"https://api.github.com/repos/rmothilal/central-services-shared/issues/events{/number}","events_url":"https://api.github.com/repos/rmothilal/central-services-shared/events","assignees_url":"https://api.github.com/repos/rmothilal/central-services-shared/assignees{/user}","branches_url":"https://api.github.com/repos/rmothilal/central-services-shared/branches{/branch}","tags_url":"https://api.github.com/repos/rmothilal/central-services-shared/tags","blobs_url":"https://api.github.com/repos/rmothilal/central-services-shared/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmothilal/central-services-shared/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmothilal/central-services-shared/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmothilal/central-services-shared/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmothilal/central-services-shared/statuses/{sha}","languages_url":"https://api.github.com/repos/rmothilal/central-services-shared/languages","stargazers_url":"https://api.github.com/repos/rmothilal/central-services-shared/stargazers","contributors_url":"https://api.github.com/repos/rmothilal/central-services-shared/contributors","subscribers_url":"https://api.github.com/repos/rmothilal/central-services-shared/subscribers","subscription_url":"https://api.github.com/repos/rmothilal/central-services-shared/subscription","commits_url":"https://api.github.com/repos/rmothilal/central-services-shared/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmothilal/central-services-shared/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmothilal/central-services-shared/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmothilal/central-services-shared/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmothilal/central-services-shared/contents/{+path}","compare_url":"https://api.github.com/repos/rmothilal/central-services-shared/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmothilal/central-services-shared/merges","archive_url":"https://api.github.com/repos/rmothilal/central-services-shared/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmothilal/central-services-shared/downloads","issues_url":"https://api.github.com/repos/rmothilal/central-services-shared/issues{/number}","pulls_url":"https://api.github.com/repos/rmothilal/central-services-shared/pulls{/number}","milestones_url":"https://api.github.com/repos/rmothilal/central-services-shared/milestones{/number}","notifications_url":"https://api.github.com/repos/rmothilal/central-services-shared/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmothilal/central-services-shared/labels{/name}","releases_url":"https://api.github.com/repos/rmothilal/central-services-shared/releases{/id}","deployments_url":"https://api.github.com/repos/rmothilal/central-services-shared/deployments","created_at":"2018-04-10T08:43:39Z","updated_at":"2018-04-10T08:43:41Z","pushed_at":"2018-04-16T14:45:18Z","git_url":"git://github.com/rmothilal/central-services-shared.git","ssh_url":"git@github.com:rmothilal/central-services-shared.git","clone_url":"https://github.com/rmothilal/central-services-shared.git","svn_url":"https://github.com/rmothilal/central-services-shared","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mdebarros:feature/#148DesignImplementCommonStreamingLibrary","ref":"feature/#148DesignImplementCommonStreamingLibrary","sha":"68eacf43306b15c99034de7388091e75161b66ad","user":{"login":"mdebarros","id":11392873,"avatar_url":"https://avatars1.githubusercontent.com/u/11392873?v=4","gravatar_id":"","url":"https://api.github.com/users/mdebarros","html_url":"https://github.com/mdebarros","followers_url":"https://api.github.com/users/mdebarros/followers","following_url":"https://api.github.com/users/mdebarros/following{/other_user}","gists_url":"https://api.github.com/users/mdebarros/gists{/gist_id}","starred_url":"https://api.github.com/users/mdebarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdebarros/subscriptions","organizations_url":"https://api.github.com/users/mdebarros/orgs","repos_url":"https://api.github.com/users/mdebarros/repos","events_url":"https://api.github.com/users/mdebarros/events{/privacy}","received_events_url":"https://api.github.com/users/mdebarros/received_events","type":"User","site_admin":false},"repo":{"id":111812012,"name":"central-services-shared","full_name":"mdebarros/central-services-shared","owner":{"login":"mdebarros","id":11392873,"avatar_url":"https://avatars1.githubusercontent.com/u/11392873?v=4","gravatar_id":"","url":"https://api.github.com/users/mdebarros","html_url":"https://github.com/mdebarros","followers_url":"https://api.github.com/users/mdebarros/followers","following_url":"https://api.github.com/users/mdebarros/following{/other_user}","gists_url":"https://api.github.com/users/mdebarros/gists{/gist_id}","starred_url":"https://api.github.com/users/mdebarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdebarros/subscriptions","organizations_url":"https://api.github.com/users/mdebarros/orgs","repos_url":"https://api.github.com/users/mdebarros/repos","events_url":"https://api.github.com/users/mdebarros/events{/privacy}","received_events_url":"https://api.github.com/users/mdebarros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdebarros/central-services-shared","description":"Shared code for central services","fork":true,"url":"https://api.github.com/repos/mdebarros/central-services-shared","forks_url":"https://api.github.com/repos/mdebarros/central-services-shared/forks","keys_url":"https://api.github.com/repos/mdebarros/central-services-shared/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdebarros/central-services-shared/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdebarros/central-services-shared/teams","hooks_url":"https://api.github.com/repos/mdebarros/central-services-shared/hooks","issue_events_url":"https://api.github.com/repos/mdebarros/central-services-shared/issues/events{/number}","events_url":"https://api.github.com/repos/mdebarros/central-services-shared/events","assignees_url":"https://api.github.com/repos/mdebarros/central-services-shared/assignees{/user}","branches_url":"https://api.github.com/repos/mdebarros/central-services-shared/branches{/branch}","tags_url":"https://api.github.com/repos/mdebarros/central-services-shared/tags","blobs_url":"https://api.github.com/repos/mdebarros/central-services-shared/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdebarros/central-services-shared/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdebarros/central-services-shared/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdebarros/central-services-shared/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdebarros/central-services-shared/statuses/{sha}","languages_url":"https://api.github.com/repos/mdebarros/central-services-shared/languages","stargazers_url":"https://api.github.com/repos/mdebarros/central-services-shared/stargazers","contributors_url":"https://api.github.com/repos/mdebarros/central-services-shared/contributors","subscribers_url":"https://api.github.com/repos/mdebarros/central-services-shared/subscribers","subscription_url":"https://api.github.com/repos/mdebarros/central-services-shared/subscription","commits_url":"https://api.github.com/repos/mdebarros/central-services-shared/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdebarros/central-services-shared/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdebarros/central-services-shared/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdebarros/central-services-shared/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdebarros/central-services-shared/contents/{+path}","compare_url":"https://api.github.com/repos/mdebarros/central-services-shared/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdebarros/central-services-shared/merges","archive_url":"https://api.github.com/repos/mdebarros/central-services-shared/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdebarros/central-services-shared/downloads","issues_url":"https://api.github.com/repos/mdebarros/central-services-shared/issues{/number}","pulls_url":"https://api.github.com/repos/mdebarros/central-services-shared/pulls{/number}","milestones_url":"https://api.github.com/repos/mdebarros/central-services-shared/milestones{/number}","notifications_url":"https://api.github.com/repos/mdebarros/central-services-shared/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdebarros/central-services-shared/labels{/name}","releases_url":"https://api.github.com/repos/mdebarros/central-services-shared/releases{/id}","deployments_url":"https://api.github.com/repos/mdebarros/central-services-shared/deployments","created_at":"2017-11-23T13:21:02Z","updated_at":"2017-11-23T13:21:03Z","pushed_at":"2018-04-16T15:04:17Z","git_url":"git://github.com/mdebarros/central-services-shared.git","ssh_url":"git@github.com:mdebarros/central-services-shared.git","clone_url":"https://github.com/mdebarros/central-services-shared.git","svn_url":"https://github.com/mdebarros/central-services-shared","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1"},"html":{"href":"https://github.com/mdebarros/central-services-shared/pull/1"},"issue":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/issues/1"},"comments":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mdebarros/central-services-shared/statuses/738a3dc5609de791ed8262fee2dcd7204245c13e"}},"author_association":"NONE"}}
{"actor":{"display_login":"rmothilal"}}