{"action":"created","comment":{"url":"https://api.github.com/repos/keybase/gregor/pulls/comments/63088891","id":63088891,"diff_hunk":"@@ -1,10 +1,38 @@\n package rpc\n \n-import \"strings\"\n+import (\n+\t\"fmt\"\n+\t\"strings\"\n+)\n \n // IsSocketClosedError returns true if e looks like an error due\n // to the socket being closed.\n // net.errClosing isn't exported, so do this.. UGLY!\n func IsSocketClosedError(e error) bool {\n \treturn strings.HasSuffix(e.Error(), \"use of closed network connection\")\n }\n+\n+type hostErr struct {\n+\thost string\n+\terr  error\n+}\n+\n+type pubErr struct {","path":"rpc/server/errors.go","position":21,"original_position":21,"commit_id":"962ab96d751f98efef0e92504483a16526b1f7c8","original_commit_id":"962ab96d751f98efef0e92504483a16526b1f7c8","user":{"login":"maxtaco","id":866815,"avatar_url":"https://avatars.githubusercontent.com/u/866815?v=3","gravatar_id":"","url":"https://api.github.com/users/maxtaco","html_url":"https://github.com/maxtaco","followers_url":"https://api.github.com/users/maxtaco/followers","following_url":"https://api.github.com/users/maxtaco/following{/other_user}","gists_url":"https://api.github.com/users/maxtaco/gists{/gist_id}","starred_url":"https://api.github.com/users/maxtaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxtaco/subscriptions","organizations_url":"https://api.github.com/users/maxtaco/orgs","repos_url":"https://api.github.com/users/maxtaco/repos","events_url":"https://api.github.com/users/maxtaco/events{/privacy}","received_events_url":"https://api.github.com/users/maxtaco/received_events","type":"User","site_admin":false},"body":"can you comment what this is for?","created_at":"2016-05-12T20:14:13Z","updated_at":"2016-05-12T20:14:13Z","html_url":"https://github.com/keybase/gregor/pull/72#discussion_r63088891","pull_request_url":"https://api.github.com/repos/keybase/gregor/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/keybase/gregor/pulls/comments/63088891"},"html":{"href":"https://github.com/keybase/gregor/pull/72#discussion_r63088891"},"pull_request":{"href":"https://api.github.com/repos/keybase/gregor/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/keybase/gregor/pulls/72","id":69874954,"html_url":"https://github.com/keybase/gregor/pull/72","diff_url":"https://github.com/keybase/gregor/pull/72.diff","patch_url":"https://github.com/keybase/gregor/pull/72.patch","issue_url":"https://api.github.com/repos/keybase/gregor/issues/72","number":72,"state":"open","locked":false,"title":"PubSub between gregors","user":{"login":"patrickxb","id":2508,"avatar_url":"https://avatars.githubusercontent.com/u/2508?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickxb","html_url":"https://github.com/patrickxb","followers_url":"https://api.github.com/users/patrickxb/followers","following_url":"https://api.github.com/users/patrickxb/following{/other_user}","gists_url":"https://api.github.com/users/patrickxb/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickxb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickxb/subscriptions","organizations_url":"https://api.github.com/users/patrickxb/orgs","repos_url":"https://api.github.com/users/patrickxb/repos","events_url":"https://api.github.com/users/patrickxb/events{/privacy}","received_events_url":"https://api.github.com/users/patrickxb/received_events","type":"User","site_admin":false},"body":"* `srvup` package to maintain alive state in mysql\r\n* `rpc/server` maintains group of alive gregord sibling connections, publishes messages to them\r\n\r\nr? @maxtaco \r\n","created_at":"2016-05-12T17:22:45Z","updated_at":"2016-05-12T20:14:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3ccb165a1f29f97da7f4c8db56b3e381f9b66d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/keybase/gregor/pulls/72/commits","review_comments_url":"https://api.github.com/repos/keybase/gregor/pulls/72/comments","review_comment_url":"https://api.github.com/repos/keybase/gregor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keybase/gregor/issues/72/comments","statuses_url":"https://api.github.com/repos/keybase/gregor/statuses/962ab96d751f98efef0e92504483a16526b1f7c8","head":{"label":"keybase:patrickxb/CORE-2781","ref":"patrickxb/CORE-2781","sha":"962ab96d751f98efef0e92504483a16526b1f7c8","user":{"login":"keybase","id":5400834,"avatar_url":"https://avatars.githubusercontent.com/u/5400834?v=3","gravatar_id":"","url":"https://api.github.com/users/keybase","html_url":"https://github.com/keybase","followers_url":"https://api.github.com/users/keybase/followers","following_url":"https://api.github.com/users/keybase/following{/other_user}","gists_url":"https://api.github.com/users/keybase/gists{/gist_id}","starred_url":"https://api.github.com/users/keybase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keybase/subscriptions","organizations_url":"https://api.github.com/users/keybase/orgs","repos_url":"https://api.github.com/users/keybase/repos","events_url":"https://api.github.com/users/keybase/events{/privacy}","received_events_url":"https://api.github.com/users/keybase/received_events","type":"Organization","site_admin":false},"repo":{"id":53508286,"name":"gregor","full_name":"keybase/gregor","owner":{"login":"keybase","id":5400834,"avatar_url":"https://avatars.githubusercontent.com/u/5400834?v=3","gravatar_id":"","url":"https://api.github.com/users/keybase","html_url":"https://github.com/keybase","followers_url":"https://api.github.com/users/keybase/followers","following_url":"https://api.github.com/users/keybase/following{/other_user}","gists_url":"https://api.github.com/users/keybase/gists{/gist_id}","starred_url":"https://api.github.com/users/keybase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keybase/subscriptions","organizations_url":"https://api.github.com/users/keybase/orgs","repos_url":"https://api.github.com/users/keybase/repos","events_url":"https://api.github.com/users/keybase/events{/privacy}","received_events_url":"https://api.github.com/users/keybase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keybase/gregor","description":"A simple state-sync service for UX notifications","fork":false,"url":"https://api.github.com/repos/keybase/gregor","forks_url":"https://api.github.com/repos/keybase/gregor/forks","keys_url":"https://api.github.com/repos/keybase/gregor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keybase/gregor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keybase/gregor/teams","hooks_url":"https://api.github.com/repos/keybase/gregor/hooks","issue_events_url":"https://api.github.com/repos/keybase/gregor/issues/events{/number}","events_url":"https://api.github.com/repos/keybase/gregor/events","assignees_url":"https://api.github.com/repos/keybase/gregor/assignees{/user}","branches_url":"https://api.github.com/repos/keybase/gregor/branches{/branch}","tags_url":"https://api.github.com/repos/keybase/gregor/tags","blobs_url":"https://api.github.com/repos/keybase/gregor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keybase/gregor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keybase/gregor/git/refs{/sha}","trees_url":"https://api.github.com/repos/keybase/gregor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keybase/gregor/statuses/{sha}","languages_url":"https://api.github.com/repos/keybase/gregor/languages","stargazers_url":"https://api.github.com/repos/keybase/gregor/stargazers","contributors_url":"https://api.github.com/repos/keybase/gregor/contributors","subscribers_url":"https://api.github.com/repos/keybase/gregor/subscribers","subscription_url":"https://api.github.com/repos/keybase/gregor/subscription","commits_url":"https://api.github.com/repos/keybase/gregor/commits{/sha}","git_commits_url":"https://api.github.com/repos/keybase/gregor/git/commits{/sha}","comments_url":"https://api.github.com/repos/keybase/gregor/comments{/number}","issue_comment_url":"https://api.github.com/repos/keybase/gregor/issues/comments{/number}","contents_url":"https://api.github.com/repos/keybase/gregor/contents/{+path}","compare_url":"https://api.github.com/repos/keybase/gregor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keybase/gregor/merges","archive_url":"https://api.github.com/repos/keybase/gregor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keybase/gregor/downloads","issues_url":"https://api.github.com/repos/keybase/gregor/issues{/number}","pulls_url":"https://api.github.com/repos/keybase/gregor/pulls{/number}","milestones_url":"https://api.github.com/repos/keybase/gregor/milestones{/number}","notifications_url":"https://api.github.com/repos/keybase/gregor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keybase/gregor/labels{/name}","releases_url":"https://api.github.com/repos/keybase/gregor/releases{/id}","deployments_url":"https://api.github.com/repos/keybase/gregor/deployments","created_at":"2016-03-09T15:23:03Z","updated_at":"2016-04-05T21:33:00Z","pushed_at":"2016-05-12T20:09:01Z","git_url":"git://github.com/keybase/gregor.git","ssh_url":"git@github.com:keybase/gregor.git","clone_url":"https://github.com/keybase/gregor.git","svn_url":"https://github.com/keybase/gregor","homepage":null,"size":17671,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"keybase:master","ref":"master","sha":"6a79b77a033f81fbbfb55a3b94acb512d74cb12b","user":{"login":"keybase","id":5400834,"avatar_url":"https://avatars.githubusercontent.com/u/5400834?v=3","gravatar_id":"","url":"https://api.github.com/users/keybase","html_url":"https://github.com/keybase","followers_url":"https://api.github.com/users/keybase/followers","following_url":"https://api.github.com/users/keybase/following{/other_user}","gists_url":"https://api.github.com/users/keybase/gists{/gist_id}","starred_url":"https://api.github.com/users/keybase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keybase/subscriptions","organizations_url":"https://api.github.com/users/keybase/orgs","repos_url":"https://api.github.com/users/keybase/repos","events_url":"https://api.github.com/users/keybase/events{/privacy}","received_events_url":"https://api.github.com/users/keybase/received_events","type":"Organization","site_admin":false},"repo":{"id":53508286,"name":"gregor","full_name":"keybase/gregor","owner":{"login":"keybase","id":5400834,"avatar_url":"https://avatars.githubusercontent.com/u/5400834?v=3","gravatar_id":"","url":"https://api.github.com/users/keybase","html_url":"https://github.com/keybase","followers_url":"https://api.github.com/users/keybase/followers","following_url":"https://api.github.com/users/keybase/following{/other_user}","gists_url":"https://api.github.com/users/keybase/gists{/gist_id}","starred_url":"https://api.github.com/users/keybase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keybase/subscriptions","organizations_url":"https://api.github.com/users/keybase/orgs","repos_url":"https://api.github.com/users/keybase/repos","events_url":"https://api.github.com/users/keybase/events{/privacy}","received_events_url":"https://api.github.com/users/keybase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keybase/gregor","description":"A simple state-sync service for UX notifications","fork":false,"url":"https://api.github.com/repos/keybase/gregor","forks_url":"https://api.github.com/repos/keybase/gregor/forks","keys_url":"https://api.github.com/repos/keybase/gregor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keybase/gregor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keybase/gregor/teams","hooks_url":"https://api.github.com/repos/keybase/gregor/hooks","issue_events_url":"https://api.github.com/repos/keybase/gregor/issues/events{/number}","events_url":"https://api.github.com/repos/keybase/gregor/events","assignees_url":"https://api.github.com/repos/keybase/gregor/assignees{/user}","branches_url":"https://api.github.com/repos/keybase/gregor/branches{/branch}","tags_url":"https://api.github.com/repos/keybase/gregor/tags","blobs_url":"https://api.github.com/repos/keybase/gregor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keybase/gregor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keybase/gregor/git/refs{/sha}","trees_url":"https://api.github.com/repos/keybase/gregor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keybase/gregor/statuses/{sha}","languages_url":"https://api.github.com/repos/keybase/gregor/languages","stargazers_url":"https://api.github.com/repos/keybase/gregor/stargazers","contributors_url":"https://api.github.com/repos/keybase/gregor/contributors","subscribers_url":"https://api.github.com/repos/keybase/gregor/subscribers","subscription_url":"https://api.github.com/repos/keybase/gregor/subscription","commits_url":"https://api.github.com/repos/keybase/gregor/commits{/sha}","git_commits_url":"https://api.github.com/repos/keybase/gregor/git/commits{/sha}","comments_url":"https://api.github.com/repos/keybase/gregor/comments{/number}","issue_comment_url":"https://api.github.com/repos/keybase/gregor/issues/comments{/number}","contents_url":"https://api.github.com/repos/keybase/gregor/contents/{+path}","compare_url":"https://api.github.com/repos/keybase/gregor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keybase/gregor/merges","archive_url":"https://api.github.com/repos/keybase/gregor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keybase/gregor/downloads","issues_url":"https://api.github.com/repos/keybase/gregor/issues{/number}","pulls_url":"https://api.github.com/repos/keybase/gregor/pulls{/number}","milestones_url":"https://api.github.com/repos/keybase/gregor/milestones{/number}","notifications_url":"https://api.github.com/repos/keybase/gregor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keybase/gregor/labels{/name}","releases_url":"https://api.github.com/repos/keybase/gregor/releases{/id}","deployments_url":"https://api.github.com/repos/keybase/gregor/deployments","created_at":"2016-03-09T15:23:03Z","updated_at":"2016-04-05T21:33:00Z","pushed_at":"2016-05-12T20:09:01Z","git_url":"git://github.com/keybase/gregor.git","ssh_url":"git@github.com:keybase/gregor.git","clone_url":"https://github.com/keybase/gregor.git","svn_url":"https://github.com/keybase/gregor","homepage":null,"size":17671,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keybase/gregor/pulls/72"},"html":{"href":"https://github.com/keybase/gregor/pull/72"},"issue":{"href":"https://api.github.com/repos/keybase/gregor/issues/72"},"comments":{"href":"https://api.github.com/repos/keybase/gregor/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/keybase/gregor/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/keybase/gregor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keybase/gregor/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/keybase/gregor/statuses/962ab96d751f98efef0e92504483a16526b1f7c8"}}}}