{"action":"created","comment":{"url":"https://api.github.com/repos/rancher/webhook-service/pulls/comments/87663534","pull_request_review_id":8270986,"id":87663534,"diff_hunk":"@@ -0,0 +1,41 @@\n+package drivers\n+\n+var drivers map[string]WebhookDriver\n+\n+type DriverSchema struct {\n+\tName        string            `json:\"name\"`\n+\tInputFormat map[string]string `json:\"inputFormat\"`\n+}\n+\n+//RegisterDrivers creates object of type driver for every request\n+func RegisterDrivers() {\n+\tdrivers = map[string]WebhookDriver{}\n+\tdrivers[\"serviceScale\"] = &ServiceScaler{}\n+}\n+\n+//GetDriver looks up the driver\n+func GetDriver(key string) WebhookDriver {\n+\tif driver, ok := drivers[key]; ok {\n+\t\treturn driver\n+\t}\n+\treturn nil\n+}\n+\n+func GetDriverSchemas() []DriverSchema {","path":"drivers/types.go","position":24,"original_position":24,"commit_id":"296fa4e80b4f3345319fe4f5873777dd949efed4","original_commit_id":"296fa4e80b4f3345319fe4f5873777dd949efed4","user":{"login":"mrajashree","id":10672776,"avatar_url":"https://avatars.githubusercontent.com/u/10672776?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajashree","html_url":"https://github.com/mrajashree","followers_url":"https://api.github.com/users/mrajashree/followers","following_url":"https://api.github.com/users/mrajashree/following{/other_user}","gists_url":"https://api.github.com/users/mrajashree/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajashree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajashree/subscriptions","organizations_url":"https://api.github.com/users/mrajashree/orgs","repos_url":"https://api.github.com/users/mrajashree/repos","events_url":"https://api.github.com/users/mrajashree/events{/privacy}","received_events_url":"https://api.github.com/users/mrajashree/received_events","type":"User","site_admin":false},"body":"This is just something I added for the schemas endpoint","created_at":"2016-11-11T21:42:30Z","updated_at":"2016-11-11T21:42:30Z","html_url":"https://github.com/rancher/webhook-service/pull/2#discussion_r87663534","pull_request_url":"https://api.github.com/repos/rancher/webhook-service/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/comments/87663534"},"html":{"href":"https://github.com/rancher/webhook-service/pull/2#discussion_r87663534"},"pull_request":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/rancher/webhook-service/pulls/2","id":92863489,"html_url":"https://github.com/rancher/webhook-service/pull/2","diff_url":"https://github.com/rancher/webhook-service/pull/2.diff","patch_url":"https://github.com/rancher/webhook-service/pull/2.patch","issue_url":"https://api.github.com/repos/rancher/webhook-service/issues/2","number":2,"state":"open","locked":false,"title":"Drivers+Routers","user":{"login":"mrajashree","id":10672776,"avatar_url":"https://avatars.githubusercontent.com/u/10672776?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajashree","html_url":"https://github.com/mrajashree","followers_url":"https://api.github.com/users/mrajashree/followers","following_url":"https://api.github.com/users/mrajashree/following{/other_user}","gists_url":"https://api.github.com/users/mrajashree/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajashree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajashree/subscriptions","organizations_url":"https://api.github.com/users/mrajashree/orgs","repos_url":"https://api.github.com/users/mrajashree/repos","events_url":"https://api.github.com/users/mrajashree/events{/privacy}","received_events_url":"https://api.github.com/users/mrajashree/received_events","type":"User","site_admin":false},"body":"Adds driver for scaling service and adds router","created_at":"2016-11-08T21:34:53Z","updated_at":"2016-11-11T21:42:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c0fdfdd0eec850914720a946b20eba79d540673","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rancher/webhook-service/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rancher/webhook-service/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rancher/webhook-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rancher/webhook-service/issues/2/comments","statuses_url":"https://api.github.com/repos/rancher/webhook-service/statuses/296fa4e80b4f3345319fe4f5873777dd949efed4","head":{"label":"mrajashree:driverRouter","ref":"driverRouter","sha":"296fa4e80b4f3345319fe4f5873777dd949efed4","user":{"login":"mrajashree","id":10672776,"avatar_url":"https://avatars.githubusercontent.com/u/10672776?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajashree","html_url":"https://github.com/mrajashree","followers_url":"https://api.github.com/users/mrajashree/followers","following_url":"https://api.github.com/users/mrajashree/following{/other_user}","gists_url":"https://api.github.com/users/mrajashree/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajashree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajashree/subscriptions","organizations_url":"https://api.github.com/users/mrajashree/orgs","repos_url":"https://api.github.com/users/mrajashree/repos","events_url":"https://api.github.com/users/mrajashree/events{/privacy}","received_events_url":"https://api.github.com/users/mrajashree/received_events","type":"User","site_admin":false},"repo":{"id":73122587,"name":"webhook-service","full_name":"mrajashree/webhook-service","owner":{"login":"mrajashree","id":10672776,"avatar_url":"https://avatars.githubusercontent.com/u/10672776?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajashree","html_url":"https://github.com/mrajashree","followers_url":"https://api.github.com/users/mrajashree/followers","following_url":"https://api.github.com/users/mrajashree/following{/other_user}","gists_url":"https://api.github.com/users/mrajashree/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajashree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajashree/subscriptions","organizations_url":"https://api.github.com/users/mrajashree/orgs","repos_url":"https://api.github.com/users/mrajashree/repos","events_url":"https://api.github.com/users/mrajashree/events{/privacy}","received_events_url":"https://api.github.com/users/mrajashree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrajashree/webhook-service","description":"Service for constructing and processing ","fork":true,"url":"https://api.github.com/repos/mrajashree/webhook-service","forks_url":"https://api.github.com/repos/mrajashree/webhook-service/forks","keys_url":"https://api.github.com/repos/mrajashree/webhook-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrajashree/webhook-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrajashree/webhook-service/teams","hooks_url":"https://api.github.com/repos/mrajashree/webhook-service/hooks","issue_events_url":"https://api.github.com/repos/mrajashree/webhook-service/issues/events{/number}","events_url":"https://api.github.com/repos/mrajashree/webhook-service/events","assignees_url":"https://api.github.com/repos/mrajashree/webhook-service/assignees{/user}","branches_url":"https://api.github.com/repos/mrajashree/webhook-service/branches{/branch}","tags_url":"https://api.github.com/repos/mrajashree/webhook-service/tags","blobs_url":"https://api.github.com/repos/mrajashree/webhook-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrajashree/webhook-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrajashree/webhook-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrajashree/webhook-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrajashree/webhook-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mrajashree/webhook-service/languages","stargazers_url":"https://api.github.com/repos/mrajashree/webhook-service/stargazers","contributors_url":"https://api.github.com/repos/mrajashree/webhook-service/contributors","subscribers_url":"https://api.github.com/repos/mrajashree/webhook-service/subscribers","subscription_url":"https://api.github.com/repos/mrajashree/webhook-service/subscription","commits_url":"https://api.github.com/repos/mrajashree/webhook-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrajashree/webhook-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrajashree/webhook-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrajashree/webhook-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrajashree/webhook-service/contents/{+path}","compare_url":"https://api.github.com/repos/mrajashree/webhook-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrajashree/webhook-service/merges","archive_url":"https://api.github.com/repos/mrajashree/webhook-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrajashree/webhook-service/downloads","issues_url":"https://api.github.com/repos/mrajashree/webhook-service/issues{/number}","pulls_url":"https://api.github.com/repos/mrajashree/webhook-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mrajashree/webhook-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mrajashree/webhook-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrajashree/webhook-service/labels{/name}","releases_url":"https://api.github.com/repos/mrajashree/webhook-service/releases{/id}","deployments_url":"https://api.github.com/repos/mrajashree/webhook-service/deployments","created_at":"2016-11-07T21:29:50Z","updated_at":"2016-11-07T23:29:35Z","pushed_at":"2016-11-11T21:40:42Z","git_url":"git://github.com/mrajashree/webhook-service.git","ssh_url":"git@github.com:mrajashree/webhook-service.git","clone_url":"https://github.com/mrajashree/webhook-service.git","svn_url":"https://github.com/mrajashree/webhook-service","homepage":null,"size":3593,"stargazers_count":1,"watchers_count":1,"language":"Shell","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":1,"default_branch":"master"}},"base":{"label":"rancher:master","ref":"master","sha":"22e871123bb8ec9d82fea8c906cadb0e6cc06277","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":72877710,"name":"webhook-service","full_name":"rancher/webhook-service","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/webhook-service","description":"Service for constructing and processing ","fork":false,"url":"https://api.github.com/repos/rancher/webhook-service","forks_url":"https://api.github.com/repos/rancher/webhook-service/forks","keys_url":"https://api.github.com/repos/rancher/webhook-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rancher/webhook-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rancher/webhook-service/teams","hooks_url":"https://api.github.com/repos/rancher/webhook-service/hooks","issue_events_url":"https://api.github.com/repos/rancher/webhook-service/issues/events{/number}","events_url":"https://api.github.com/repos/rancher/webhook-service/events","assignees_url":"https://api.github.com/repos/rancher/webhook-service/assignees{/user}","branches_url":"https://api.github.com/repos/rancher/webhook-service/branches{/branch}","tags_url":"https://api.github.com/repos/rancher/webhook-service/tags","blobs_url":"https://api.github.com/repos/rancher/webhook-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rancher/webhook-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rancher/webhook-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/rancher/webhook-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rancher/webhook-service/statuses/{sha}","languages_url":"https://api.github.com/repos/rancher/webhook-service/languages","stargazers_url":"https://api.github.com/repos/rancher/webhook-service/stargazers","contributors_url":"https://api.github.com/repos/rancher/webhook-service/contributors","subscribers_url":"https://api.github.com/repos/rancher/webhook-service/subscribers","subscription_url":"https://api.github.com/repos/rancher/webhook-service/subscription","commits_url":"https://api.github.com/repos/rancher/webhook-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/rancher/webhook-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/rancher/webhook-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/rancher/webhook-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/rancher/webhook-service/contents/{+path}","compare_url":"https://api.github.com/repos/rancher/webhook-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rancher/webhook-service/merges","archive_url":"https://api.github.com/repos/rancher/webhook-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rancher/webhook-service/downloads","issues_url":"https://api.github.com/repos/rancher/webhook-service/issues{/number}","pulls_url":"https://api.github.com/repos/rancher/webhook-service/pulls{/number}","milestones_url":"https://api.github.com/repos/rancher/webhook-service/milestones{/number}","notifications_url":"https://api.github.com/repos/rancher/webhook-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rancher/webhook-service/labels{/name}","releases_url":"https://api.github.com/repos/rancher/webhook-service/releases{/id}","deployments_url":"https://api.github.com/repos/rancher/webhook-service/deployments","created_at":"2016-11-04T19:10:52Z","updated_at":"2016-11-10T21:40:44Z","pushed_at":"2016-11-11T21:40:43Z","git_url":"git://github.com/rancher/webhook-service.git","ssh_url":"git@github.com:rancher/webhook-service.git","clone_url":"https://github.com/rancher/webhook-service.git","svn_url":"https://github.com/rancher/webhook-service","homepage":null,"size":55,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/2"},"html":{"href":"https://github.com/rancher/webhook-service/pull/2"},"issue":{"href":"https://api.github.com/repos/rancher/webhook-service/issues/2"},"comments":{"href":"https://api.github.com/repos/rancher/webhook-service/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rancher/webhook-service/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rancher/webhook-service/statuses/296fa4e80b4f3345319fe4f5873777dd949efed4"}}}}
{"actor":{"display_login":"mrajashree"}}