{"action":"created","comment":{"url":"https://api.github.com/repos/gluster/glusterd2/pulls/comments/55002962","id":55002962,"diff_hunk":"@@ -3,29 +3,63 @@ package peercommands\n import (\n \t\"net/http\"\n \n+\t\"github.com/gluster/glusterd2/context\"\n \t\"github.com/gluster/glusterd2/peer\"\n \t\"github.com/gluster/glusterd2/rest\"\n+\t\"github.com/gluster/glusterd2/rpc/client\"\n+\n+\tlog \"github.com/Sirupsen/logrus\"\n+\tetcdclient \"github.com/coreos/etcd/client\"\n+\tetcdcontext \"golang.org/x/net/context\"\n \n \t\"github.com/gorilla/mux\"\n )\n \n func deletePeerHandler(w http.ResponseWriter, r *http.Request) {\n-\tp := mux.Vars(r)\n+\tpeerReq := mux.Vars(r)","path":"commands/peers/deletepeer.go","position":18,"original_position":18,"commit_id":"b46ebc40c92c5baf254f4dd368189acce639c593","original_commit_id":"b46ebc40c92c5baf254f4dd368189acce639c593","user":{"login":"gaurav36","id":6826559,"avatar_url":"https://avatars.githubusercontent.com/u/6826559?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav36","html_url":"https://github.com/gaurav36","followers_url":"https://api.github.com/users/gaurav36/followers","following_url":"https://api.github.com/users/gaurav36/following{/other_user}","gists_url":"https://api.github.com/users/gaurav36/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav36/subscriptions","organizations_url":"https://api.github.com/users/gaurav36/orgs","repos_url":"https://api.github.com/users/gaurav36/repos","events_url":"https://api.github.com/users/gaurav36/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav36/received_events","type":"User","site_admin":false},"body":"write comment about use case of this function.","created_at":"2016-03-04T08:39:32Z","updated_at":"2016-03-04T08:39:32Z","html_url":"https://github.com/gluster/glusterd2/pull/83#discussion_r55002962","pull_request_url":"https://api.github.com/repos/gluster/glusterd2/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/comments/55002962"},"html":{"href":"https://github.com/gluster/glusterd2/pull/83#discussion_r55002962"},"pull_request":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/gluster/glusterd2/pulls/83","id":60854490,"html_url":"https://github.com/gluster/glusterd2/pull/83","diff_url":"https://github.com/gluster/glusterd2/pull/83.diff","patch_url":"https://github.com/gluster/glusterd2/pull/83.patch","issue_url":"https://api.github.com/repos/gluster/glusterd2/issues/83","number":83,"state":"open","locked":false,"title":"Delete peer","user":{"login":"atinmu","id":6978456,"avatar_url":"https://avatars.githubusercontent.com/u/6978456?v=3","gravatar_id":"","url":"https://api.github.com/users/atinmu","html_url":"https://github.com/atinmu","followers_url":"https://api.github.com/users/atinmu/followers","following_url":"https://api.github.com/users/atinmu/following{/other_user}","gists_url":"https://api.github.com/users/atinmu/gists{/gist_id}","starred_url":"https://api.github.com/users/atinmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atinmu/subscriptions","organizations_url":"https://api.github.com/users/atinmu/orgs","repos_url":"https://api.github.com/users/atinmu/repos","events_url":"https://api.github.com/users/atinmu/events{/privacy}","received_events_url":"https://api.github.com/users/atinmu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-26T15:06:15Z","updated_at":"2016-03-04T08:39:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"934b91ba8037772dd0ec73bc975818c445152126","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gluster/glusterd2/pulls/83/commits","review_comments_url":"https://api.github.com/repos/gluster/glusterd2/pulls/83/comments","review_comment_url":"https://api.github.com/repos/gluster/glusterd2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gluster/glusterd2/issues/83/comments","statuses_url":"https://api.github.com/repos/gluster/glusterd2/statuses/b46ebc40c92c5baf254f4dd368189acce639c593","head":{"label":"atinmu:delete-peer","ref":"delete-peer","sha":"b46ebc40c92c5baf254f4dd368189acce639c593","user":{"login":"atinmu","id":6978456,"avatar_url":"https://avatars.githubusercontent.com/u/6978456?v=3","gravatar_id":"","url":"https://api.github.com/users/atinmu","html_url":"https://github.com/atinmu","followers_url":"https://api.github.com/users/atinmu/followers","following_url":"https://api.github.com/users/atinmu/following{/other_user}","gists_url":"https://api.github.com/users/atinmu/gists{/gist_id}","starred_url":"https://api.github.com/users/atinmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atinmu/subscriptions","organizations_url":"https://api.github.com/users/atinmu/orgs","repos_url":"https://api.github.com/users/atinmu/repos","events_url":"https://api.github.com/users/atinmu/events{/privacy}","received_events_url":"https://api.github.com/users/atinmu/received_events","type":"User","site_admin":false},"repo":{"id":39490722,"name":"glusterd2","full_name":"atinmu/glusterd2","owner":{"login":"atinmu","id":6978456,"avatar_url":"https://avatars.githubusercontent.com/u/6978456?v=3","gravatar_id":"","url":"https://api.github.com/users/atinmu","html_url":"https://github.com/atinmu","followers_url":"https://api.github.com/users/atinmu/followers","following_url":"https://api.github.com/users/atinmu/following{/other_user}","gists_url":"https://api.github.com/users/atinmu/gists{/gist_id}","starred_url":"https://api.github.com/users/atinmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atinmu/subscriptions","organizations_url":"https://api.github.com/users/atinmu/orgs","repos_url":"https://api.github.com/users/atinmu/repos","events_url":"https://api.github.com/users/atinmu/events{/privacy}","received_events_url":"https://api.github.com/users/atinmu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atinmu/glusterd2","description":"","fork":true,"url":"https://api.github.com/repos/atinmu/glusterd2","forks_url":"https://api.github.com/repos/atinmu/glusterd2/forks","keys_url":"https://api.github.com/repos/atinmu/glusterd2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atinmu/glusterd2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atinmu/glusterd2/teams","hooks_url":"https://api.github.com/repos/atinmu/glusterd2/hooks","issue_events_url":"https://api.github.com/repos/atinmu/glusterd2/issues/events{/number}","events_url":"https://api.github.com/repos/atinmu/glusterd2/events","assignees_url":"https://api.github.com/repos/atinmu/glusterd2/assignees{/user}","branches_url":"https://api.github.com/repos/atinmu/glusterd2/branches{/branch}","tags_url":"https://api.github.com/repos/atinmu/glusterd2/tags","blobs_url":"https://api.github.com/repos/atinmu/glusterd2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atinmu/glusterd2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atinmu/glusterd2/git/refs{/sha}","trees_url":"https://api.github.com/repos/atinmu/glusterd2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atinmu/glusterd2/statuses/{sha}","languages_url":"https://api.github.com/repos/atinmu/glusterd2/languages","stargazers_url":"https://api.github.com/repos/atinmu/glusterd2/stargazers","contributors_url":"https://api.github.com/repos/atinmu/glusterd2/contributors","subscribers_url":"https://api.github.com/repos/atinmu/glusterd2/subscribers","subscription_url":"https://api.github.com/repos/atinmu/glusterd2/subscription","commits_url":"https://api.github.com/repos/atinmu/glusterd2/commits{/sha}","git_commits_url":"https://api.github.com/repos/atinmu/glusterd2/git/commits{/sha}","comments_url":"https://api.github.com/repos/atinmu/glusterd2/comments{/number}","issue_comment_url":"https://api.github.com/repos/atinmu/glusterd2/issues/comments{/number}","contents_url":"https://api.github.com/repos/atinmu/glusterd2/contents/{+path}","compare_url":"https://api.github.com/repos/atinmu/glusterd2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atinmu/glusterd2/merges","archive_url":"https://api.github.com/repos/atinmu/glusterd2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atinmu/glusterd2/downloads","issues_url":"https://api.github.com/repos/atinmu/glusterd2/issues{/number}","pulls_url":"https://api.github.com/repos/atinmu/glusterd2/pulls{/number}","milestones_url":"https://api.github.com/repos/atinmu/glusterd2/milestones{/number}","notifications_url":"https://api.github.com/repos/atinmu/glusterd2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atinmu/glusterd2/labels{/name}","releases_url":"https://api.github.com/repos/atinmu/glusterd2/releases{/id}","deployments_url":"https://api.github.com/repos/atinmu/glusterd2/deployments","created_at":"2015-07-22T06:57:15Z","updated_at":"2015-07-22T06:57:18Z","pushed_at":"2016-03-04T05:44:46Z","git_url":"git://github.com/atinmu/glusterd2.git","ssh_url":"git@github.com:atinmu/glusterd2.git","clone_url":"https://github.com/atinmu/glusterd2.git","svn_url":"https://github.com/atinmu/glusterd2","homepage":null,"size":1509,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gluster:master","ref":"master","sha":"d27af6add6a97442e4fd1b25b3caa45f382e824b","user":{"login":"gluster","id":622644,"avatar_url":"https://avatars.githubusercontent.com/u/622644?v=3","gravatar_id":"","url":"https://api.github.com/users/gluster","html_url":"https://github.com/gluster","followers_url":"https://api.github.com/users/gluster/followers","following_url":"https://api.github.com/users/gluster/following{/other_user}","gists_url":"https://api.github.com/users/gluster/gists{/gist_id}","starred_url":"https://api.github.com/users/gluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluster/subscriptions","organizations_url":"https://api.github.com/users/gluster/orgs","repos_url":"https://api.github.com/users/gluster/repos","events_url":"https://api.github.com/users/gluster/events{/privacy}","received_events_url":"https://api.github.com/users/gluster/received_events","type":"Organization","site_admin":false},"repo":{"id":24369600,"name":"glusterd2","full_name":"gluster/glusterd2","owner":{"login":"gluster","id":622644,"avatar_url":"https://avatars.githubusercontent.com/u/622644?v=3","gravatar_id":"","url":"https://api.github.com/users/gluster","html_url":"https://github.com/gluster","followers_url":"https://api.github.com/users/gluster/followers","following_url":"https://api.github.com/users/gluster/following{/other_user}","gists_url":"https://api.github.com/users/gluster/gists{/gist_id}","starred_url":"https://api.github.com/users/gluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluster/subscriptions","organizations_url":"https://api.github.com/users/gluster/orgs","repos_url":"https://api.github.com/users/gluster/repos","events_url":"https://api.github.com/users/gluster/events{/privacy}","received_events_url":"https://api.github.com/users/gluster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gluster/glusterd2","description":"GlusterD-2.0 is the distributed management framework to be used for GlusterFS-4.0","fork":false,"url":"https://api.github.com/repos/gluster/glusterd2","forks_url":"https://api.github.com/repos/gluster/glusterd2/forks","keys_url":"https://api.github.com/repos/gluster/glusterd2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gluster/glusterd2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gluster/glusterd2/teams","hooks_url":"https://api.github.com/repos/gluster/glusterd2/hooks","issue_events_url":"https://api.github.com/repos/gluster/glusterd2/issues/events{/number}","events_url":"https://api.github.com/repos/gluster/glusterd2/events","assignees_url":"https://api.github.com/repos/gluster/glusterd2/assignees{/user}","branches_url":"https://api.github.com/repos/gluster/glusterd2/branches{/branch}","tags_url":"https://api.github.com/repos/gluster/glusterd2/tags","blobs_url":"https://api.github.com/repos/gluster/glusterd2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gluster/glusterd2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gluster/glusterd2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gluster/glusterd2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gluster/glusterd2/statuses/{sha}","languages_url":"https://api.github.com/repos/gluster/glusterd2/languages","stargazers_url":"https://api.github.com/repos/gluster/glusterd2/stargazers","contributors_url":"https://api.github.com/repos/gluster/glusterd2/contributors","subscribers_url":"https://api.github.com/repos/gluster/glusterd2/subscribers","subscription_url":"https://api.github.com/repos/gluster/glusterd2/subscription","commits_url":"https://api.github.com/repos/gluster/glusterd2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gluster/glusterd2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gluster/glusterd2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gluster/glusterd2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gluster/glusterd2/contents/{+path}","compare_url":"https://api.github.com/repos/gluster/glusterd2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gluster/glusterd2/merges","archive_url":"https://api.github.com/repos/gluster/glusterd2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gluster/glusterd2/downloads","issues_url":"https://api.github.com/repos/gluster/glusterd2/issues{/number}","pulls_url":"https://api.github.com/repos/gluster/glusterd2/pulls{/number}","milestones_url":"https://api.github.com/repos/gluster/glusterd2/milestones{/number}","notifications_url":"https://api.github.com/repos/gluster/glusterd2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gluster/glusterd2/labels{/name}","releases_url":"https://api.github.com/repos/gluster/glusterd2/releases{/id}","deployments_url":"https://api.github.com/repos/gluster/glusterd2/deployments","created_at":"2014-09-23T12:02:13Z","updated_at":"2016-02-23T09:03:57Z","pushed_at":"2016-03-04T05:44:48Z","git_url":"git://github.com/gluster/glusterd2.git","ssh_url":"git@github.com:gluster/glusterd2.git","clone_url":"https://github.com/gluster/glusterd2.git","svn_url":"https://github.com/gluster/glusterd2","homepage":"","size":1540,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":15,"forks":9,"open_issues":15,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/83"},"html":{"href":"https://github.com/gluster/glusterd2/pull/83"},"issue":{"href":"https://api.github.com/repos/gluster/glusterd2/issues/83"},"comments":{"href":"https://api.github.com/repos/gluster/glusterd2/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gluster/glusterd2/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/gluster/glusterd2/statuses/b46ebc40c92c5baf254f4dd368189acce639c593"}}}}