{"action":"created","comment":{"url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/comments/183269765","pull_request_review_id":114235144,"id":183269765,"diff_hunk":"@@ -0,0 +1,37 @@\n+package main\n+\n+import (\n+\t\"encoding/json\"\n+\n+\t\"github.com/it-chain/bifrost/conn\"\n+\t\"github.com/it-chain/it-chain-Engine/messaging\"\n+\t\"github.com/it-chain/it-chain-Engine/messaging/event\"\n+\t\"github.com/it-chain/it-chain-Engine/messaging/topic\"\n+)\n+\n+type EventPublisher struct {\n+\tmessaging *messaging.Messaging\n+}\n+\n+func (ep EventPublisher) PublishConnectionCreatedEvent(connection conn.Connection) error {\n+\n+\tconnInfo := connection.GetConnInfo()\n+\n+\tconnCreatedEvent := event.ConnectionCreated{}\n+\tconnCreatedEvent.Id = string(connInfo.Id)\n+\tconnCreatedEvent.Address = connInfo.Address.IP","path":"grpc_gateway/event_publisher.go","position":22,"original_position":22,"commit_id":"742d8f57f58e8c21e38f9b303c8fc77903ad2cba","original_commit_id":"742d8f57f58e8c21e38f9b303c8fc77903ad2cba","user":{"login":"zeroFruit","id":18715362,"avatar_url":"https://avatars0.githubusercontent.com/u/18715362?v=4","gravatar_id":"","url":"https://api.github.com/users/zeroFruit","html_url":"https://github.com/zeroFruit","followers_url":"https://api.github.com/users/zeroFruit/followers","following_url":"https://api.github.com/users/zeroFruit/following{/other_user}","gists_url":"https://api.github.com/users/zeroFruit/gists{/gist_id}","starred_url":"https://api.github.com/users/zeroFruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeroFruit/subscriptions","organizations_url":"https://api.github.com/users/zeroFruit/orgs","repos_url":"https://api.github.com/users/zeroFruit/repos","events_url":"https://api.github.com/users/zeroFruit/events{/privacy}","received_events_url":"https://api.github.com/users/zeroFruit/received_events","type":"User","site_admin":false},"body":"```connCreatedEvent```가 외부 peer랑 연결된다음 받은 event인거 같은데 네이밍이 뭔가 확 와닿지가 않는 거 같아요. 그리고 사소한거지만 저 세 줄만 따로 함수로 빼도 괜찮을 거 같습니다.","created_at":"2018-04-23T03:24:46Z","updated_at":"2018-04-23T03:24:46Z","html_url":"https://github.com/it-chain/it-chain-Engine/pull/161#discussion_r183269765","pull_request_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/comments/183269765"},"html":{"href":"https://github.com/it-chain/it-chain-Engine/pull/161#discussion_r183269765"},"pull_request":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161"}}},"pull_request":{"url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161","id":182974906,"html_url":"https://github.com/it-chain/it-chain-Engine/pull/161","diff_url":"https://github.com/it-chain/it-chain-Engine/pull/161.diff","patch_url":"https://github.com/it-chain/it-chain-Engine/pull/161.patch","issue_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/161","number":161,"state":"open","locked":false,"title":"Feature/grpc gateway","user":{"login":"junbeomlee","id":10362293,"avatar_url":"https://avatars2.githubusercontent.com/u/10362293?v=4","gravatar_id":"","url":"https://api.github.com/users/junbeomlee","html_url":"https://github.com/junbeomlee","followers_url":"https://api.github.com/users/junbeomlee/followers","following_url":"https://api.github.com/users/junbeomlee/following{/other_user}","gists_url":"https://api.github.com/users/junbeomlee/gists{/gist_id}","starred_url":"https://api.github.com/users/junbeomlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junbeomlee/subscriptions","organizations_url":"https://api.github.com/users/junbeomlee/orgs","repos_url":"https://api.github.com/users/junbeomlee/repos","events_url":"https://api.github.com/users/junbeomlee/events{/privacy}","received_events_url":"https://api.github.com/users/junbeomlee/received_events","type":"User","site_admin":false},"body":"grpc readme 일부 작성했습니다.","created_at":"2018-04-20T06:56:15Z","updated_at":"2018-04-23T03:24:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e66fc83a702dad866ded7c2483584f878a362acb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"byron1st","id":1930352,"avatar_url":"https://avatars2.githubusercontent.com/u/1930352?v=4","gravatar_id":"","url":"https://api.github.com/users/byron1st","html_url":"https://github.com/byron1st","followers_url":"https://api.github.com/users/byron1st/followers","following_url":"https://api.github.com/users/byron1st/following{/other_user}","gists_url":"https://api.github.com/users/byron1st/gists{/gist_id}","starred_url":"https://api.github.com/users/byron1st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byron1st/subscriptions","organizations_url":"https://api.github.com/users/byron1st/orgs","repos_url":"https://api.github.com/users/byron1st/repos","events_url":"https://api.github.com/users/byron1st/events{/privacy}","received_events_url":"https://api.github.com/users/byron1st/received_events","type":"User","site_admin":false},{"login":"yojkim","id":2631975,"avatar_url":"https://avatars1.githubusercontent.com/u/2631975?v=4","gravatar_id":"","url":"https://api.github.com/users/yojkim","html_url":"https://github.com/yojkim","followers_url":"https://api.github.com/users/yojkim/followers","following_url":"https://api.github.com/users/yojkim/following{/other_user}","gists_url":"https://api.github.com/users/yojkim/gists{/gist_id}","starred_url":"https://api.github.com/users/yojkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yojkim/subscriptions","organizations_url":"https://api.github.com/users/yojkim/orgs","repos_url":"https://api.github.com/users/yojkim/repos","events_url":"https://api.github.com/users/yojkim/events{/privacy}","received_events_url":"https://api.github.com/users/yojkim/received_events","type":"User","site_admin":false},{"login":"hackurity01","id":8624075,"avatar_url":"https://avatars1.githubusercontent.com/u/8624075?v=4","gravatar_id":"","url":"https://api.github.com/users/hackurity01","html_url":"https://github.com/hackurity01","followers_url":"https://api.github.com/users/hackurity01/followers","following_url":"https://api.github.com/users/hackurity01/following{/other_user}","gists_url":"https://api.github.com/users/hackurity01/gists{/gist_id}","starred_url":"https://api.github.com/users/hackurity01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackurity01/subscriptions","organizations_url":"https://api.github.com/users/hackurity01/orgs","repos_url":"https://api.github.com/users/hackurity01/repos","events_url":"https://api.github.com/users/hackurity01/events{/privacy}","received_events_url":"https://api.github.com/users/hackurity01/received_events","type":"User","site_admin":false},{"login":"rla1219","id":19179268,"avatar_url":"https://avatars3.githubusercontent.com/u/19179268?v=4","gravatar_id":"","url":"https://api.github.com/users/rla1219","html_url":"https://github.com/rla1219","followers_url":"https://api.github.com/users/rla1219/followers","following_url":"https://api.github.com/users/rla1219/following{/other_user}","gists_url":"https://api.github.com/users/rla1219/gists{/gist_id}","starred_url":"https://api.github.com/users/rla1219/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rla1219/subscriptions","organizations_url":"https://api.github.com/users/rla1219/orgs","repos_url":"https://api.github.com/users/rla1219/repos","events_url":"https://api.github.com/users/rla1219/events{/privacy}","received_events_url":"https://api.github.com/users/rla1219/received_events","type":"User","site_admin":false},{"login":"codeblv","id":26078176,"avatar_url":"https://avatars0.githubusercontent.com/u/26078176?v=4","gravatar_id":"","url":"https://api.github.com/users/codeblv","html_url":"https://github.com/codeblv","followers_url":"https://api.github.com/users/codeblv/followers","following_url":"https://api.github.com/users/codeblv/following{/other_user}","gists_url":"https://api.github.com/users/codeblv/gists{/gist_id}","starred_url":"https://api.github.com/users/codeblv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeblv/subscriptions","organizations_url":"https://api.github.com/users/codeblv/orgs","repos_url":"https://api.github.com/users/codeblv/repos","events_url":"https://api.github.com/users/codeblv/events{/privacy}","received_events_url":"https://api.github.com/users/codeblv/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161/commits","review_comments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161/comments","review_comment_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/161/comments","statuses_url":"https://api.github.com/repos/it-chain/it-chain-Engine/statuses/742d8f57f58e8c21e38f9b303c8fc77903ad2cba","head":{"label":"it-chain:feature/grpc-gateway","ref":"feature/grpc-gateway","sha":"742d8f57f58e8c21e38f9b303c8fc77903ad2cba","user":{"login":"it-chain","id":37285422,"avatar_url":"https://avatars2.githubusercontent.com/u/37285422?v=4","gravatar_id":"","url":"https://api.github.com/users/it-chain","html_url":"https://github.com/it-chain","followers_url":"https://api.github.com/users/it-chain/followers","following_url":"https://api.github.com/users/it-chain/following{/other_user}","gists_url":"https://api.github.com/users/it-chain/gists{/gist_id}","starred_url":"https://api.github.com/users/it-chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-chain/subscriptions","organizations_url":"https://api.github.com/users/it-chain/orgs","repos_url":"https://api.github.com/users/it-chain/repos","events_url":"https://api.github.com/users/it-chain/events{/privacy}","received_events_url":"https://api.github.com/users/it-chain/received_events","type":"Organization","site_admin":false},"repo":{"id":115470058,"name":"it-chain-Engine","full_name":"it-chain/it-chain-Engine","owner":{"login":"it-chain","id":37285422,"avatar_url":"https://avatars2.githubusercontent.com/u/37285422?v=4","gravatar_id":"","url":"https://api.github.com/users/it-chain","html_url":"https://github.com/it-chain","followers_url":"https://api.github.com/users/it-chain/followers","following_url":"https://api.github.com/users/it-chain/following{/other_user}","gists_url":"https://api.github.com/users/it-chain/gists{/gist_id}","starred_url":"https://api.github.com/users/it-chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-chain/subscriptions","organizations_url":"https://api.github.com/users/it-chain/orgs","repos_url":"https://api.github.com/users/it-chain/repos","events_url":"https://api.github.com/users/it-chain/events{/privacy}","received_events_url":"https://api.github.com/users/it-chain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/it-chain/it-chain-Engine","description":"Lightweight & Customizable Block Chain","fork":false,"url":"https://api.github.com/repos/it-chain/it-chain-Engine","forks_url":"https://api.github.com/repos/it-chain/it-chain-Engine/forks","keys_url":"https://api.github.com/repos/it-chain/it-chain-Engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-chain/it-chain-Engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-chain/it-chain-Engine/teams","hooks_url":"https://api.github.com/repos/it-chain/it-chain-Engine/hooks","issue_events_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/events{/number}","events_url":"https://api.github.com/repos/it-chain/it-chain-Engine/events","assignees_url":"https://api.github.com/repos/it-chain/it-chain-Engine/assignees{/user}","branches_url":"https://api.github.com/repos/it-chain/it-chain-Engine/branches{/branch}","tags_url":"https://api.github.com/repos/it-chain/it-chain-Engine/tags","blobs_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-chain/it-chain-Engine/statuses/{sha}","languages_url":"https://api.github.com/repos/it-chain/it-chain-Engine/languages","stargazers_url":"https://api.github.com/repos/it-chain/it-chain-Engine/stargazers","contributors_url":"https://api.github.com/repos/it-chain/it-chain-Engine/contributors","subscribers_url":"https://api.github.com/repos/it-chain/it-chain-Engine/subscribers","subscription_url":"https://api.github.com/repos/it-chain/it-chain-Engine/subscription","commits_url":"https://api.github.com/repos/it-chain/it-chain-Engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-chain/it-chain-Engine/contents/{+path}","compare_url":"https://api.github.com/repos/it-chain/it-chain-Engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-chain/it-chain-Engine/merges","archive_url":"https://api.github.com/repos/it-chain/it-chain-Engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-chain/it-chain-Engine/downloads","issues_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues{/number}","pulls_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls{/number}","milestones_url":"https://api.github.com/repos/it-chain/it-chain-Engine/milestones{/number}","notifications_url":"https://api.github.com/repos/it-chain/it-chain-Engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-chain/it-chain-Engine/labels{/name}","releases_url":"https://api.github.com/repos/it-chain/it-chain-Engine/releases{/id}","deployments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/deployments","created_at":"2017-12-27T01:54:19Z","updated_at":"2018-04-20T15:41:22Z","pushed_at":"2018-04-21T13:21:53Z","git_url":"git://github.com/it-chain/it-chain-Engine.git","ssh_url":"git@github.com:it-chain/it-chain-Engine.git","clone_url":"https://github.com/it-chain/it-chain-Engine.git","svn_url":"https://github.com/it-chain/it-chain-Engine","homepage":"","size":41482,"stargazers_count":47,"watchers_count":47,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":19,"open_issues":14,"watchers":47,"default_branch":"develop"}},"base":{"label":"it-chain:develop","ref":"develop","sha":"cabae74c9777fcf9082a2b384d58c634a600e053","user":{"login":"it-chain","id":37285422,"avatar_url":"https://avatars2.githubusercontent.com/u/37285422?v=4","gravatar_id":"","url":"https://api.github.com/users/it-chain","html_url":"https://github.com/it-chain","followers_url":"https://api.github.com/users/it-chain/followers","following_url":"https://api.github.com/users/it-chain/following{/other_user}","gists_url":"https://api.github.com/users/it-chain/gists{/gist_id}","starred_url":"https://api.github.com/users/it-chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-chain/subscriptions","organizations_url":"https://api.github.com/users/it-chain/orgs","repos_url":"https://api.github.com/users/it-chain/repos","events_url":"https://api.github.com/users/it-chain/events{/privacy}","received_events_url":"https://api.github.com/users/it-chain/received_events","type":"Organization","site_admin":false},"repo":{"id":115470058,"name":"it-chain-Engine","full_name":"it-chain/it-chain-Engine","owner":{"login":"it-chain","id":37285422,"avatar_url":"https://avatars2.githubusercontent.com/u/37285422?v=4","gravatar_id":"","url":"https://api.github.com/users/it-chain","html_url":"https://github.com/it-chain","followers_url":"https://api.github.com/users/it-chain/followers","following_url":"https://api.github.com/users/it-chain/following{/other_user}","gists_url":"https://api.github.com/users/it-chain/gists{/gist_id}","starred_url":"https://api.github.com/users/it-chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-chain/subscriptions","organizations_url":"https://api.github.com/users/it-chain/orgs","repos_url":"https://api.github.com/users/it-chain/repos","events_url":"https://api.github.com/users/it-chain/events{/privacy}","received_events_url":"https://api.github.com/users/it-chain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/it-chain/it-chain-Engine","description":"Lightweight & Customizable Block Chain","fork":false,"url":"https://api.github.com/repos/it-chain/it-chain-Engine","forks_url":"https://api.github.com/repos/it-chain/it-chain-Engine/forks","keys_url":"https://api.github.com/repos/it-chain/it-chain-Engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-chain/it-chain-Engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-chain/it-chain-Engine/teams","hooks_url":"https://api.github.com/repos/it-chain/it-chain-Engine/hooks","issue_events_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/events{/number}","events_url":"https://api.github.com/repos/it-chain/it-chain-Engine/events","assignees_url":"https://api.github.com/repos/it-chain/it-chain-Engine/assignees{/user}","branches_url":"https://api.github.com/repos/it-chain/it-chain-Engine/branches{/branch}","tags_url":"https://api.github.com/repos/it-chain/it-chain-Engine/tags","blobs_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-chain/it-chain-Engine/statuses/{sha}","languages_url":"https://api.github.com/repos/it-chain/it-chain-Engine/languages","stargazers_url":"https://api.github.com/repos/it-chain/it-chain-Engine/stargazers","contributors_url":"https://api.github.com/repos/it-chain/it-chain-Engine/contributors","subscribers_url":"https://api.github.com/repos/it-chain/it-chain-Engine/subscribers","subscription_url":"https://api.github.com/repos/it-chain/it-chain-Engine/subscription","commits_url":"https://api.github.com/repos/it-chain/it-chain-Engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-chain/it-chain-Engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-chain/it-chain-Engine/contents/{+path}","compare_url":"https://api.github.com/repos/it-chain/it-chain-Engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-chain/it-chain-Engine/merges","archive_url":"https://api.github.com/repos/it-chain/it-chain-Engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-chain/it-chain-Engine/downloads","issues_url":"https://api.github.com/repos/it-chain/it-chain-Engine/issues{/number}","pulls_url":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls{/number}","milestones_url":"https://api.github.com/repos/it-chain/it-chain-Engine/milestones{/number}","notifications_url":"https://api.github.com/repos/it-chain/it-chain-Engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-chain/it-chain-Engine/labels{/name}","releases_url":"https://api.github.com/repos/it-chain/it-chain-Engine/releases{/id}","deployments_url":"https://api.github.com/repos/it-chain/it-chain-Engine/deployments","created_at":"2017-12-27T01:54:19Z","updated_at":"2018-04-20T15:41:22Z","pushed_at":"2018-04-21T13:21:53Z","git_url":"git://github.com/it-chain/it-chain-Engine.git","ssh_url":"git@github.com:it-chain/it-chain-Engine.git","clone_url":"https://github.com/it-chain/it-chain-Engine.git","svn_url":"https://github.com/it-chain/it-chain-Engine","homepage":"","size":41482,"stargazers_count":47,"watchers_count":47,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":19,"open_issues":14,"watchers":47,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161"},"html":{"href":"https://github.com/it-chain/it-chain-Engine/pull/161"},"issue":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/161"},"comments":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/it-chain/it-chain-Engine/statuses/742d8f57f58e8c21e38f9b303c8fc77903ad2cba"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"zeroFruit"}}