{"action":"created","comment":{"url":"https://api.github.com/repos/rancher/sparse-tools/pulls/comments/71077797","id":71077797,"diff_hunk":"@@ -0,0 +1,19 @@\n+package rest\n+\n+import \"github.com/gorilla/mux\"\n+\n+//NewRouter creates and configures a mux router\n+func NewRouter(server *SyncServer) *mux.Router {\n+\n+\t// API framework routes\n+\trouter := mux.NewRouter().StrictSlash(true)\n+\n+\t// Application\n+\trouter.HandleFunc(\"/v1-ssync/getChecksum\", server.getChecksum).Methods(\"GET\")\n+\trouter.HandleFunc(\"/v1-ssync/open\", server.open).Methods(\"GET\")\n+\trouter.HandleFunc(\"/v1-ssync/close\", server.close).Methods(\"GET\")","path":"sparse/rest/router.go","position":null,"original_position":14,"commit_id":"8024fc5d0c8a30dc8552be34e70a67156b68bd68","original_commit_id":"1c1678a089ad9fd3d43d5b5e2af04e7e8bdbec1b","user":{"login":"jimengliu","id":17127678,"avatar_url":"https://avatars.githubusercontent.com/u/17127678?v=3","gravatar_id":"","url":"https://api.github.com/users/jimengliu","html_url":"https://github.com/jimengliu","followers_url":"https://api.github.com/users/jimengliu/followers","following_url":"https://api.github.com/users/jimengliu/following{/other_user}","gists_url":"https://api.github.com/users/jimengliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jimengliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimengliu/subscriptions","organizations_url":"https://api.github.com/users/jimengliu/orgs","repos_url":"https://api.github.com/users/jimengliu/repos","events_url":"https://api.github.com/users/jimengliu/events{/privacy}","received_events_url":"https://api.github.com/users/jimengliu/received_events","type":"User","site_admin":false},"body":"right, fixed","created_at":"2016-07-17T07:16:32Z","updated_at":"2016-07-17T07:16:32Z","html_url":"https://github.com/rancher/sparse-tools/pull/48#discussion_r71077797","pull_request_url":"https://api.github.com/repos/rancher/sparse-tools/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/comments/71077797"},"html":{"href":"https://github.com/rancher/sparse-tools/pull/48#discussion_r71077797"},"pull_request":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/rancher/sparse-tools/pulls/48","id":77628420,"html_url":"https://github.com/rancher/sparse-tools/pull/48","diff_url":"https://github.com/rancher/sparse-tools/pull/48.diff","patch_url":"https://github.com/rancher/sparse-tools/pull/48.patch","issue_url":"https://api.github.com/repos/rancher/sparse-tools/issues/48","number":48,"state":"open","locked":false,"title":"change gob to rest calls","user":{"login":"jimengliu","id":17127678,"avatar_url":"https://avatars.githubusercontent.com/u/17127678?v=3","gravatar_id":"","url":"https://api.github.com/users/jimengliu","html_url":"https://github.com/jimengliu","followers_url":"https://api.github.com/users/jimengliu/followers","following_url":"https://api.github.com/users/jimengliu/following{/other_user}","gists_url":"https://api.github.com/users/jimengliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jimengliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimengliu/subscriptions","organizations_url":"https://api.github.com/users/jimengliu/orgs","repos_url":"https://api.github.com/users/jimengliu/repos","events_url":"https://api.github.com/users/jimengliu/events{/privacy}","received_events_url":"https://api.github.com/users/jimengliu/received_events","type":"User","site_admin":false},"body":"- make client and server communicate using http rest calls instead of GOB\r\n- re-organize files and folders\r\n\r\n@yasker @ibuildthecloud ","created_at":"2016-07-15T14:54:06Z","updated_at":"2016-07-17T07:16:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e863b418b7907a92b6c7377bdf33d96abda2902b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rancher/sparse-tools/pulls/48/commits","review_comments_url":"https://api.github.com/repos/rancher/sparse-tools/pulls/48/comments","review_comment_url":"https://api.github.com/repos/rancher/sparse-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rancher/sparse-tools/issues/48/comments","statuses_url":"https://api.github.com/repos/rancher/sparse-tools/statuses/8024fc5d0c8a30dc8552be34e70a67156b68bd68","head":{"label":"jimengliu:fixLog","ref":"fixLog","sha":"8024fc5d0c8a30dc8552be34e70a67156b68bd68","user":{"login":"jimengliu","id":17127678,"avatar_url":"https://avatars.githubusercontent.com/u/17127678?v=3","gravatar_id":"","url":"https://api.github.com/users/jimengliu","html_url":"https://github.com/jimengliu","followers_url":"https://api.github.com/users/jimengliu/followers","following_url":"https://api.github.com/users/jimengliu/following{/other_user}","gists_url":"https://api.github.com/users/jimengliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jimengliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimengliu/subscriptions","organizations_url":"https://api.github.com/users/jimengliu/orgs","repos_url":"https://api.github.com/users/jimengliu/repos","events_url":"https://api.github.com/users/jimengliu/events{/privacy}","received_events_url":"https://api.github.com/users/jimengliu/received_events","type":"User","site_admin":false},"repo":{"id":61582848,"name":"sparse-tools","full_name":"jimengliu/sparse-tools","owner":{"login":"jimengliu","id":17127678,"avatar_url":"https://avatars.githubusercontent.com/u/17127678?v=3","gravatar_id":"","url":"https://api.github.com/users/jimengliu","html_url":"https://github.com/jimengliu","followers_url":"https://api.github.com/users/jimengliu/followers","following_url":"https://api.github.com/users/jimengliu/following{/other_user}","gists_url":"https://api.github.com/users/jimengliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jimengliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimengliu/subscriptions","organizations_url":"https://api.github.com/users/jimengliu/orgs","repos_url":"https://api.github.com/users/jimengliu/repos","events_url":"https://api.github.com/users/jimengliu/events{/privacy}","received_events_url":"https://api.github.com/users/jimengliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimengliu/sparse-tools","description":"sparse storage slab synchronization, etc.","fork":true,"url":"https://api.github.com/repos/jimengliu/sparse-tools","forks_url":"https://api.github.com/repos/jimengliu/sparse-tools/forks","keys_url":"https://api.github.com/repos/jimengliu/sparse-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimengliu/sparse-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimengliu/sparse-tools/teams","hooks_url":"https://api.github.com/repos/jimengliu/sparse-tools/hooks","issue_events_url":"https://api.github.com/repos/jimengliu/sparse-tools/issues/events{/number}","events_url":"https://api.github.com/repos/jimengliu/sparse-tools/events","assignees_url":"https://api.github.com/repos/jimengliu/sparse-tools/assignees{/user}","branches_url":"https://api.github.com/repos/jimengliu/sparse-tools/branches{/branch}","tags_url":"https://api.github.com/repos/jimengliu/sparse-tools/tags","blobs_url":"https://api.github.com/repos/jimengliu/sparse-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimengliu/sparse-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimengliu/sparse-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimengliu/sparse-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimengliu/sparse-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/jimengliu/sparse-tools/languages","stargazers_url":"https://api.github.com/repos/jimengliu/sparse-tools/stargazers","contributors_url":"https://api.github.com/repos/jimengliu/sparse-tools/contributors","subscribers_url":"https://api.github.com/repos/jimengliu/sparse-tools/subscribers","subscription_url":"https://api.github.com/repos/jimengliu/sparse-tools/subscription","commits_url":"https://api.github.com/repos/jimengliu/sparse-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimengliu/sparse-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimengliu/sparse-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimengliu/sparse-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimengliu/sparse-tools/contents/{+path}","compare_url":"https://api.github.com/repos/jimengliu/sparse-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimengliu/sparse-tools/merges","archive_url":"https://api.github.com/repos/jimengliu/sparse-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimengliu/sparse-tools/downloads","issues_url":"https://api.github.com/repos/jimengliu/sparse-tools/issues{/number}","pulls_url":"https://api.github.com/repos/jimengliu/sparse-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/jimengliu/sparse-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/jimengliu/sparse-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimengliu/sparse-tools/labels{/name}","releases_url":"https://api.github.com/repos/jimengliu/sparse-tools/releases{/id}","deployments_url":"https://api.github.com/repos/jimengliu/sparse-tools/deployments","created_at":"2016-06-20T21:52:53Z","updated_at":"2016-06-20T21:52:54Z","pushed_at":"2016-07-17T07:02:30Z","git_url":"git://github.com/jimengliu/sparse-tools.git","ssh_url":"git@github.com:jimengliu/sparse-tools.git","clone_url":"https://github.com/jimengliu/sparse-tools.git","svn_url":"https://github.com/jimengliu/sparse-tools","homepage":null,"size":1702,"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":"rancher:master","ref":"master","sha":"2ff044e474e8a863a337ebbee10a3c1413fb1dcb","user":{"login":"rancher","id":9343010,"avatar_url":"https://avatars.githubusercontent.com/u/9343010?v=3","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"repo":{"id":56107772,"name":"sparse-tools","full_name":"rancher/sparse-tools","owner":{"login":"rancher","id":9343010,"avatar_url":"https://avatars.githubusercontent.com/u/9343010?v=3","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rancher/sparse-tools","description":"sparse storage slab synchronization, etc.","fork":false,"url":"https://api.github.com/repos/rancher/sparse-tools","forks_url":"https://api.github.com/repos/rancher/sparse-tools/forks","keys_url":"https://api.github.com/repos/rancher/sparse-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rancher/sparse-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rancher/sparse-tools/teams","hooks_url":"https://api.github.com/repos/rancher/sparse-tools/hooks","issue_events_url":"https://api.github.com/repos/rancher/sparse-tools/issues/events{/number}","events_url":"https://api.github.com/repos/rancher/sparse-tools/events","assignees_url":"https://api.github.com/repos/rancher/sparse-tools/assignees{/user}","branches_url":"https://api.github.com/repos/rancher/sparse-tools/branches{/branch}","tags_url":"https://api.github.com/repos/rancher/sparse-tools/tags","blobs_url":"https://api.github.com/repos/rancher/sparse-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rancher/sparse-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rancher/sparse-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/rancher/sparse-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rancher/sparse-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/rancher/sparse-tools/languages","stargazers_url":"https://api.github.com/repos/rancher/sparse-tools/stargazers","contributors_url":"https://api.github.com/repos/rancher/sparse-tools/contributors","subscribers_url":"https://api.github.com/repos/rancher/sparse-tools/subscribers","subscription_url":"https://api.github.com/repos/rancher/sparse-tools/subscription","commits_url":"https://api.github.com/repos/rancher/sparse-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/rancher/sparse-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/rancher/sparse-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/rancher/sparse-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/rancher/sparse-tools/contents/{+path}","compare_url":"https://api.github.com/repos/rancher/sparse-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rancher/sparse-tools/merges","archive_url":"https://api.github.com/repos/rancher/sparse-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rancher/sparse-tools/downloads","issues_url":"https://api.github.com/repos/rancher/sparse-tools/issues{/number}","pulls_url":"https://api.github.com/repos/rancher/sparse-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/rancher/sparse-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/rancher/sparse-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rancher/sparse-tools/labels{/name}","releases_url":"https://api.github.com/repos/rancher/sparse-tools/releases{/id}","deployments_url":"https://api.github.com/repos/rancher/sparse-tools/deployments","created_at":"2016-04-13T00:26:40Z","updated_at":"2016-04-24T04:32:29Z","pushed_at":"2016-07-17T07:02:30Z","git_url":"git://github.com/rancher/sparse-tools.git","ssh_url":"git@github.com:rancher/sparse-tools.git","clone_url":"https://github.com/rancher/sparse-tools.git","svn_url":"https://github.com/rancher/sparse-tools","homepage":null,"size":1665,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/48"},"html":{"href":"https://github.com/rancher/sparse-tools/pull/48"},"issue":{"href":"https://api.github.com/repos/rancher/sparse-tools/issues/48"},"comments":{"href":"https://api.github.com/repos/rancher/sparse-tools/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rancher/sparse-tools/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/rancher/sparse-tools/statuses/8024fc5d0c8a30dc8552be34e70a67156b68bd68"}}}}
{"actor":{"display_login":"jimengliu"}}