{"action":"created","comment":{"url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/comments/33186599","id":33186599,"diff_hunk":"@@ -0,0 +1,141 @@\n+'use strict';\n+\n+var TChannel = require('tchannel');\n+var HyperbahnClient = require('tchannel/hyperbahn');\n+var fs = require('fs');\n+var path = require('path');\n+var Ringpop = require('ringpop');\n+var Logtron = require('logtron');\n+var Statsd = require('uber-statsd-client');\n+var os = require('os');\n+var process = require('process');\n+var myLocalIp = require('my-local-ip');\n+var Uncaught = require('uncaught-exception');\n+\n+var thriftFile = fs.readFileSync(\n+    path.join(__dirname, 'thrift', 'service.thrift'), 'utf8'\n+);\n+\n+var SERVICE_NAME = 'my-service';\n+\n+/* TODO:\n+    - process reporter\n+    - heap dump\n+    - repl\n+*/\n+module.exports = ApplicationClients;\n+\n+function ApplicationClients(config, options) {\n+    /*eslint no-process-env: 0*/\n+    if (!(this instanceof ApplicationClients)) {\n+        return new ApplicationClients(config, options);\n+    }\n+\n+    var self = this;\n+\n+    self.logger = options.logger || Logtron({\n+        meta: {\n+            team: 'my-team',","path":"template/content/clients.js","position":38,"original_position":38,"commit_id":"55c6b595430ed77632d0111c2d4fc43a0b0d4c26","original_commit_id":"55c6b595430ed77632d0111c2d4fc43a0b0d4c26","user":{"login":"jwolski","id":16902,"avatar_url":"https://avatars.githubusercontent.com/u/16902?v=3","gravatar_id":"","url":"https://api.github.com/users/jwolski","html_url":"https://github.com/jwolski","followers_url":"https://api.github.com/users/jwolski/followers","following_url":"https://api.github.com/users/jwolski/following{/other_user}","gists_url":"https://api.github.com/users/jwolski/gists{/gist_id}","starred_url":"https://api.github.com/users/jwolski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwolski/subscriptions","organizations_url":"https://api.github.com/users/jwolski/orgs","repos_url":"https://api.github.com/users/jwolski/repos","events_url":"https://api.github.com/users/jwolski/events{/privacy}","received_events_url":"https://api.github.com/users/jwolski/received_events","type":"User","site_admin":false},"body":"move to config?","created_at":"2015-06-24T19:36:51Z","updated_at":"2015-06-24T19:36:51Z","html_url":"https://github.com/Raynos/tchannel-gen/pull/1#discussion_r33186599","pull_request_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/comments/33186599"},"html":{"href":"https://github.com/Raynos/tchannel-gen/pull/1#discussion_r33186599"},"pull_request":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1","id":38207676,"html_url":"https://github.com/Raynos/tchannel-gen/pull/1","diff_url":"https://github.com/Raynos/tchannel-gen/pull/1.diff","patch_url":"https://github.com/Raynos/tchannel-gen/pull/1.patch","issue_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/1","number":1,"state":"open","locked":false,"title":"TChannel + Hyperbahn + Ringpop + Thrift scaffold","user":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"body":"This is a first pass at a scaffold for tchannel and pals.\r\n\r\nFeatures:\r\n\r\n - ringpop out of the box\r\n - hyperbahn out of the box\r\n - thrift out of the box; including examples of thrift exceptions\r\n - 100% code coverage\r\n - 100% integration tests\r\n - All tests go through hyperbahn client by importing `TestHyperbahnCluster` from tchannel\r\n - Zero folders \r\n\r\nIt may help to read:\r\n\r\n - [tchannel guide](https://github.com/uber/tchannel/blob/master/node/GUIDE.md)\r\n - [tchannel docs](https://github.com/uber/tchannel/tree/master/node/docs)\r\n\r\nr: @Matt-Esch @rf @jcorbin @jwolski\r\n\r\ncc @willyham @shannili","created_at":"2015-06-22T08:01:36Z","updated_at":"2015-06-24T19:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9260973cc7bbd05a5d5cfca802729994e12151be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/1/comments","statuses_url":"https://api.github.com/repos/Raynos/tchannel-gen/statuses/55c6b595430ed77632d0111c2d4fc43a0b0d4c26","head":{"label":"Raynos:template","ref":"template","sha":"55c6b595430ed77632d0111c2d4fc43a0b0d4c26","user":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"repo":{"id":37839285,"name":"tchannel-gen","full_name":"Raynos/tchannel-gen","owner":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Raynos/tchannel-gen","description":null,"fork":false,"url":"https://api.github.com/repos/Raynos/tchannel-gen","forks_url":"https://api.github.com/repos/Raynos/tchannel-gen/forks","keys_url":"https://api.github.com/repos/Raynos/tchannel-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raynos/tchannel-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raynos/tchannel-gen/teams","hooks_url":"https://api.github.com/repos/Raynos/tchannel-gen/hooks","issue_events_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/events{/number}","events_url":"https://api.github.com/repos/Raynos/tchannel-gen/events","assignees_url":"https://api.github.com/repos/Raynos/tchannel-gen/assignees{/user}","branches_url":"https://api.github.com/repos/Raynos/tchannel-gen/branches{/branch}","tags_url":"https://api.github.com/repos/Raynos/tchannel-gen/tags","blobs_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raynos/tchannel-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/Raynos/tchannel-gen/languages","stargazers_url":"https://api.github.com/repos/Raynos/tchannel-gen/stargazers","contributors_url":"https://api.github.com/repos/Raynos/tchannel-gen/contributors","subscribers_url":"https://api.github.com/repos/Raynos/tchannel-gen/subscribers","subscription_url":"https://api.github.com/repos/Raynos/tchannel-gen/subscription","commits_url":"https://api.github.com/repos/Raynos/tchannel-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raynos/tchannel-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/Raynos/tchannel-gen/contents/{+path}","compare_url":"https://api.github.com/repos/Raynos/tchannel-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raynos/tchannel-gen/merges","archive_url":"https://api.github.com/repos/Raynos/tchannel-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raynos/tchannel-gen/downloads","issues_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues{/number}","pulls_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/Raynos/tchannel-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/Raynos/tchannel-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raynos/tchannel-gen/labels{/name}","releases_url":"https://api.github.com/repos/Raynos/tchannel-gen/releases{/id}","created_at":"2015-06-22T05:41:31Z","updated_at":"2015-06-24T01:30:10Z","pushed_at":"2015-06-22T08:01:37Z","git_url":"git://github.com/Raynos/tchannel-gen.git","ssh_url":"git@github.com:Raynos/tchannel-gen.git","clone_url":"https://github.com/Raynos/tchannel-gen.git","svn_url":"https://github.com/Raynos/tchannel-gen","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Raynos:master","ref":"master","sha":"589ecea736ed3aef6df02d8759f6d0cd3cb98a20","user":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"repo":{"id":37839285,"name":"tchannel-gen","full_name":"Raynos/tchannel-gen","owner":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Raynos/tchannel-gen","description":null,"fork":false,"url":"https://api.github.com/repos/Raynos/tchannel-gen","forks_url":"https://api.github.com/repos/Raynos/tchannel-gen/forks","keys_url":"https://api.github.com/repos/Raynos/tchannel-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raynos/tchannel-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raynos/tchannel-gen/teams","hooks_url":"https://api.github.com/repos/Raynos/tchannel-gen/hooks","issue_events_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/events{/number}","events_url":"https://api.github.com/repos/Raynos/tchannel-gen/events","assignees_url":"https://api.github.com/repos/Raynos/tchannel-gen/assignees{/user}","branches_url":"https://api.github.com/repos/Raynos/tchannel-gen/branches{/branch}","tags_url":"https://api.github.com/repos/Raynos/tchannel-gen/tags","blobs_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raynos/tchannel-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/Raynos/tchannel-gen/languages","stargazers_url":"https://api.github.com/repos/Raynos/tchannel-gen/stargazers","contributors_url":"https://api.github.com/repos/Raynos/tchannel-gen/contributors","subscribers_url":"https://api.github.com/repos/Raynos/tchannel-gen/subscribers","subscription_url":"https://api.github.com/repos/Raynos/tchannel-gen/subscription","commits_url":"https://api.github.com/repos/Raynos/tchannel-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raynos/tchannel-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raynos/tchannel-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/Raynos/tchannel-gen/contents/{+path}","compare_url":"https://api.github.com/repos/Raynos/tchannel-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raynos/tchannel-gen/merges","archive_url":"https://api.github.com/repos/Raynos/tchannel-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raynos/tchannel-gen/downloads","issues_url":"https://api.github.com/repos/Raynos/tchannel-gen/issues{/number}","pulls_url":"https://api.github.com/repos/Raynos/tchannel-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/Raynos/tchannel-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/Raynos/tchannel-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raynos/tchannel-gen/labels{/name}","releases_url":"https://api.github.com/repos/Raynos/tchannel-gen/releases{/id}","created_at":"2015-06-22T05:41:31Z","updated_at":"2015-06-24T01:30:10Z","pushed_at":"2015-06-22T08:01:37Z","git_url":"git://github.com/Raynos/tchannel-gen.git","ssh_url":"git@github.com:Raynos/tchannel-gen.git","clone_url":"https://github.com/Raynos/tchannel-gen.git","svn_url":"https://github.com/Raynos/tchannel-gen","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1"},"html":{"href":"https://github.com/Raynos/tchannel-gen/pull/1"},"issue":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/issues/1"},"comments":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Raynos/tchannel-gen/statuses/55c6b595430ed77632d0111c2d4fc43a0b0d4c26"}}}}