{"action":"created","comment":{"url":"https://api.github.com/repos/NYTimes/gizmo/pulls/comments/74606641","id":74606641,"diff_hunk":"@@ -0,0 +1,72 @@\n+package postgresql\n+\n+import (\n+\t\"database/sql\"\n+\t\"fmt\"\n+\t\"net/url\"\n+\n+\t\"github.com/NYTimes/gizmo/config\"\n+)\n+\n+// Config holds everything yo need to\n+// connect and interact with a Postgresql DB\n+type Config struct {\n+\tUser    string `envconfig:\"POSTGRESQL_USER\"`\n+\tPw      string `envconfig:\"POSTGRESQL_PW\"`\n+\tHost    string `envconfig:\"POSTGRESQL_HOST_NAME\"`\n+\tPort    int    `envconfig:\"POSTGRESQL_PORT\"`\n+\tDBName  string `envconfig:\"POSTGRESQL_DB_NAME\"`\n+\tSSLMode string `envconfig:\"POSTGRESQL_SSL_MODE\"`\n+}\n+\n+const (\n+\t// DefaultSSLMode is disabled\n+\tDefaultSSLMode = \"disable\"","path":"config/postgresql/postgresql.go","position":24,"original_position":24,"commit_id":"a2e001967b7464bf2b2f7081e7120e884e25ee47","original_commit_id":"a2e001967b7464bf2b2f7081e7120e884e25ee47","user":{"login":"jprobinson","id":1386065,"avatar_url":"https://avatars.githubusercontent.com/u/1386065?v=3","gravatar_id":"","url":"https://api.github.com/users/jprobinson","html_url":"https://github.com/jprobinson","followers_url":"https://api.github.com/users/jprobinson/followers","following_url":"https://api.github.com/users/jprobinson/following{/other_user}","gists_url":"https://api.github.com/users/jprobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jprobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprobinson/subscriptions","organizations_url":"https://api.github.com/users/jprobinson/orgs","repos_url":"https://api.github.com/users/jprobinson/repos","events_url":"https://api.github.com/users/jprobinson/events{/privacy}","received_events_url":"https://api.github.com/users/jprobinson/received_events","type":"User","site_admin":false},"body":"For security sake, I think we'd want SSL on by default and required users to change the config to make it insecure.","created_at":"2016-08-12T15:06:40Z","updated_at":"2016-08-12T15:06:40Z","html_url":"https://github.com/NYTimes/gizmo/pull/68#discussion_r74606641","pull_request_url":"https://api.github.com/repos/NYTimes/gizmo/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/comments/74606641"},"html":{"href":"https://github.com/NYTimes/gizmo/pull/68#discussion_r74606641"},"pull_request":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/NYTimes/gizmo/pulls/68","id":81007669,"html_url":"https://github.com/NYTimes/gizmo/pull/68","diff_url":"https://github.com/NYTimes/gizmo/pull/68.diff","patch_url":"https://github.com/NYTimes/gizmo/pull/68.patch","issue_url":"https://api.github.com/repos/NYTimes/gizmo/issues/68","number":68,"state":"open","locked":false,"title":"Add support for Postgresql","user":{"login":"theundeadmonk","id":7609117,"avatar_url":"https://avatars.githubusercontent.com/u/7609117?v=3","gravatar_id":"","url":"https://api.github.com/users/theundeadmonk","html_url":"https://github.com/theundeadmonk","followers_url":"https://api.github.com/users/theundeadmonk/followers","following_url":"https://api.github.com/users/theundeadmonk/following{/other_user}","gists_url":"https://api.github.com/users/theundeadmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/theundeadmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theundeadmonk/subscriptions","organizations_url":"https://api.github.com/users/theundeadmonk/orgs","repos_url":"https://api.github.com/users/theundeadmonk/repos","events_url":"https://api.github.com/users/theundeadmonk/events{/privacy}","received_events_url":"https://api.github.com/users/theundeadmonk/received_events","type":"User","site_admin":false},"body":"🚧 \r\n\r\nWould you guys be interested in this?","created_at":"2016-08-11T18:35:31Z","updated_at":"2016-08-12T15:06:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5817a49aef52c20d0d87ab061cc6ab7db49a97b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NYTimes/gizmo/pulls/68/commits","review_comments_url":"https://api.github.com/repos/NYTimes/gizmo/pulls/68/comments","review_comment_url":"https://api.github.com/repos/NYTimes/gizmo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NYTimes/gizmo/issues/68/comments","statuses_url":"https://api.github.com/repos/NYTimes/gizmo/statuses/a2e001967b7464bf2b2f7081e7120e884e25ee47","head":{"label":"theundeadmonk:postgres","ref":"postgres","sha":"a2e001967b7464bf2b2f7081e7120e884e25ee47","user":{"login":"theundeadmonk","id":7609117,"avatar_url":"https://avatars.githubusercontent.com/u/7609117?v=3","gravatar_id":"","url":"https://api.github.com/users/theundeadmonk","html_url":"https://github.com/theundeadmonk","followers_url":"https://api.github.com/users/theundeadmonk/followers","following_url":"https://api.github.com/users/theundeadmonk/following{/other_user}","gists_url":"https://api.github.com/users/theundeadmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/theundeadmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theundeadmonk/subscriptions","organizations_url":"https://api.github.com/users/theundeadmonk/orgs","repos_url":"https://api.github.com/users/theundeadmonk/repos","events_url":"https://api.github.com/users/theundeadmonk/events{/privacy}","received_events_url":"https://api.github.com/users/theundeadmonk/received_events","type":"User","site_admin":false},"repo":{"id":65484654,"name":"gizmo","full_name":"theundeadmonk/gizmo","owner":{"login":"theundeadmonk","id":7609117,"avatar_url":"https://avatars.githubusercontent.com/u/7609117?v=3","gravatar_id":"","url":"https://api.github.com/users/theundeadmonk","html_url":"https://github.com/theundeadmonk","followers_url":"https://api.github.com/users/theundeadmonk/followers","following_url":"https://api.github.com/users/theundeadmonk/following{/other_user}","gists_url":"https://api.github.com/users/theundeadmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/theundeadmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theundeadmonk/subscriptions","organizations_url":"https://api.github.com/users/theundeadmonk/orgs","repos_url":"https://api.github.com/users/theundeadmonk/repos","events_url":"https://api.github.com/users/theundeadmonk/events{/privacy}","received_events_url":"https://api.github.com/users/theundeadmonk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theundeadmonk/gizmo","description":"A Microservice Toolkit from The New York Times","fork":true,"url":"https://api.github.com/repos/theundeadmonk/gizmo","forks_url":"https://api.github.com/repos/theundeadmonk/gizmo/forks","keys_url":"https://api.github.com/repos/theundeadmonk/gizmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theundeadmonk/gizmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theundeadmonk/gizmo/teams","hooks_url":"https://api.github.com/repos/theundeadmonk/gizmo/hooks","issue_events_url":"https://api.github.com/repos/theundeadmonk/gizmo/issues/events{/number}","events_url":"https://api.github.com/repos/theundeadmonk/gizmo/events","assignees_url":"https://api.github.com/repos/theundeadmonk/gizmo/assignees{/user}","branches_url":"https://api.github.com/repos/theundeadmonk/gizmo/branches{/branch}","tags_url":"https://api.github.com/repos/theundeadmonk/gizmo/tags","blobs_url":"https://api.github.com/repos/theundeadmonk/gizmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theundeadmonk/gizmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theundeadmonk/gizmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/theundeadmonk/gizmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theundeadmonk/gizmo/statuses/{sha}","languages_url":"https://api.github.com/repos/theundeadmonk/gizmo/languages","stargazers_url":"https://api.github.com/repos/theundeadmonk/gizmo/stargazers","contributors_url":"https://api.github.com/repos/theundeadmonk/gizmo/contributors","subscribers_url":"https://api.github.com/repos/theundeadmonk/gizmo/subscribers","subscription_url":"https://api.github.com/repos/theundeadmonk/gizmo/subscription","commits_url":"https://api.github.com/repos/theundeadmonk/gizmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/theundeadmonk/gizmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/theundeadmonk/gizmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/theundeadmonk/gizmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/theundeadmonk/gizmo/contents/{+path}","compare_url":"https://api.github.com/repos/theundeadmonk/gizmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theundeadmonk/gizmo/merges","archive_url":"https://api.github.com/repos/theundeadmonk/gizmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theundeadmonk/gizmo/downloads","issues_url":"https://api.github.com/repos/theundeadmonk/gizmo/issues{/number}","pulls_url":"https://api.github.com/repos/theundeadmonk/gizmo/pulls{/number}","milestones_url":"https://api.github.com/repos/theundeadmonk/gizmo/milestones{/number}","notifications_url":"https://api.github.com/repos/theundeadmonk/gizmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theundeadmonk/gizmo/labels{/name}","releases_url":"https://api.github.com/repos/theundeadmonk/gizmo/releases{/id}","deployments_url":"https://api.github.com/repos/theundeadmonk/gizmo/deployments","created_at":"2016-08-11T16:30:16Z","updated_at":"2016-08-11T16:30:17Z","pushed_at":"2016-08-12T05:36:07Z","git_url":"git://github.com/theundeadmonk/gizmo.git","ssh_url":"git@github.com:theundeadmonk/gizmo.git","clone_url":"https://github.com/theundeadmonk/gizmo.git","svn_url":"https://github.com/theundeadmonk/gizmo","homepage":"http://open.blogs.nytimes.com/2015/12/17/introducing-gizmo/","size":360,"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":"NYTimes:master","ref":"master","sha":"85962394668f000f7e4d09ef79554570a34bcf86","user":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"repo":{"id":48060472,"name":"gizmo","full_name":"NYTimes/gizmo","owner":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NYTimes/gizmo","description":"A Microservice Toolkit from The New York Times","fork":false,"url":"https://api.github.com/repos/NYTimes/gizmo","forks_url":"https://api.github.com/repos/NYTimes/gizmo/forks","keys_url":"https://api.github.com/repos/NYTimes/gizmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NYTimes/gizmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NYTimes/gizmo/teams","hooks_url":"https://api.github.com/repos/NYTimes/gizmo/hooks","issue_events_url":"https://api.github.com/repos/NYTimes/gizmo/issues/events{/number}","events_url":"https://api.github.com/repos/NYTimes/gizmo/events","assignees_url":"https://api.github.com/repos/NYTimes/gizmo/assignees{/user}","branches_url":"https://api.github.com/repos/NYTimes/gizmo/branches{/branch}","tags_url":"https://api.github.com/repos/NYTimes/gizmo/tags","blobs_url":"https://api.github.com/repos/NYTimes/gizmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NYTimes/gizmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NYTimes/gizmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/NYTimes/gizmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NYTimes/gizmo/statuses/{sha}","languages_url":"https://api.github.com/repos/NYTimes/gizmo/languages","stargazers_url":"https://api.github.com/repos/NYTimes/gizmo/stargazers","contributors_url":"https://api.github.com/repos/NYTimes/gizmo/contributors","subscribers_url":"https://api.github.com/repos/NYTimes/gizmo/subscribers","subscription_url":"https://api.github.com/repos/NYTimes/gizmo/subscription","commits_url":"https://api.github.com/repos/NYTimes/gizmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/NYTimes/gizmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/NYTimes/gizmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/NYTimes/gizmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/NYTimes/gizmo/contents/{+path}","compare_url":"https://api.github.com/repos/NYTimes/gizmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NYTimes/gizmo/merges","archive_url":"https://api.github.com/repos/NYTimes/gizmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NYTimes/gizmo/downloads","issues_url":"https://api.github.com/repos/NYTimes/gizmo/issues{/number}","pulls_url":"https://api.github.com/repos/NYTimes/gizmo/pulls{/number}","milestones_url":"https://api.github.com/repos/NYTimes/gizmo/milestones{/number}","notifications_url":"https://api.github.com/repos/NYTimes/gizmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NYTimes/gizmo/labels{/name}","releases_url":"https://api.github.com/repos/NYTimes/gizmo/releases{/id}","deployments_url":"https://api.github.com/repos/NYTimes/gizmo/deployments","created_at":"2015-12-15T18:09:36Z","updated_at":"2016-08-12T09:59:47Z","pushed_at":"2016-08-12T05:36:08Z","git_url":"git://github.com/NYTimes/gizmo.git","ssh_url":"git@github.com:NYTimes/gizmo.git","clone_url":"https://github.com/NYTimes/gizmo.git","svn_url":"https://github.com/NYTimes/gizmo","homepage":"http://open.blogs.nytimes.com/2015/12/17/introducing-gizmo/","size":407,"stargazers_count":1472,"watchers_count":1472,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":6,"forks":81,"open_issues":6,"watchers":1472,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/68"},"html":{"href":"https://github.com/NYTimes/gizmo/pull/68"},"issue":{"href":"https://api.github.com/repos/NYTimes/gizmo/issues/68"},"comments":{"href":"https://api.github.com/repos/NYTimes/gizmo/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NYTimes/gizmo/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/NYTimes/gizmo/statuses/a2e001967b7464bf2b2f7081e7120e884e25ee47"}}}}
{"actor":{"display_login":"jprobinson"}}