{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/uw-labs/substrate/pulls/18","id":232338372,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzM4Mzcy","html_url":"https://github.com/uw-labs/substrate/pull/18","diff_url":"https://github.com/uw-labs/substrate/pull/18.diff","patch_url":"https://github.com/uw-labs/substrate/pull/18.patch","issue_url":"https://api.github.com/repos/uw-labs/substrate/issues/18","number":18,"state":"closed","locked":false,"title":"URL based connection","user":{"login":"mjgarton","id":11156949,"node_id":"MDQ6VXNlcjExMTU2OTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/11156949?v=4","gravatar_id":"","url":"https://api.github.com/users/mjgarton","html_url":"https://github.com/mjgarton","followers_url":"https://api.github.com/users/mjgarton/followers","following_url":"https://api.github.com/users/mjgarton/following{/other_user}","gists_url":"https://api.github.com/users/mjgarton/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgarton/subscriptions","organizations_url":"https://api.github.com/users/mjgarton/orgs","repos_url":"https://api.github.com/users/mjgarton/repos","events_url":"https://api.github.com/users/mjgarton/events{/privacy}","received_events_url":"https://api.github.com/users/mjgarton/received_events","type":"User","site_admin":false},"body":"This implements a URL based connection approach, enabling switching\r\nbetween different types of broken by configuration alone.  The various\r\ndrivers register themselves in much the same way as sql drivers used\r\nwith the standard library.\r\n\r\nSome examples are below, see included documentation for more details.\r\n\r\n```\r\nsource, err := suburl.NewSource(\"nats-streaming://localhost:4222/my-subject?cluster-id=foo&consumer-id=bar\")\r\nif err != nil {\r\n        // error handling\r\n}\r\ndefer source.Close()\r\n\r\n// use source here\r\n```\r\n\r\n```\r\nHere is an example of obtaining a kafka sink.\r\n\r\nsink, err := suburl.NewSink(\"kafka://localhost:9092/my-topic/?broker=localhost%3A9092&broker=localhost%3A9092\")\r\nif err != nil {\r\n        // error handling\r\n}\r\ndefer sink.Close()\r\n\r\n// use sink here\r\n\r\n```","created_at":"2018-11-20T14:32:49Z","updated_at":"2018-11-21T10:21:37Z","closed_at":"2018-11-21T10:21:37Z","merged_at":"2018-11-21T10:21:37Z","merge_commit_sha":"347ecfc5c1f403e623a5fa83a2d319bd0a0ce76c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uw-labs/substrate/pulls/18/commits","review_comments_url":"https://api.github.com/repos/uw-labs/substrate/pulls/18/comments","review_comment_url":"https://api.github.com/repos/uw-labs/substrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uw-labs/substrate/issues/18/comments","statuses_url":"https://api.github.com/repos/uw-labs/substrate/statuses/742bd9b8ee6a200f88f34669e673231e128a2aa7","head":{"label":"uw-labs:suburl","ref":"suburl","sha":"742bd9b8ee6a200f88f34669e673231e128a2aa7","user":{"login":"uw-labs","id":27777752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3Nzc3NzUy","avatar_url":"https://avatars0.githubusercontent.com/u/27777752?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-labs","html_url":"https://github.com/uw-labs","followers_url":"https://api.github.com/users/uw-labs/followers","following_url":"https://api.github.com/users/uw-labs/following{/other_user}","gists_url":"https://api.github.com/users/uw-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-labs/subscriptions","organizations_url":"https://api.github.com/users/uw-labs/orgs","repos_url":"https://api.github.com/users/uw-labs/repos","events_url":"https://api.github.com/users/uw-labs/events{/privacy}","received_events_url":"https://api.github.com/users/uw-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":150259361,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAyNTkzNjE=","name":"substrate","full_name":"uw-labs/substrate","private":false,"owner":{"login":"uw-labs","id":27777752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3Nzc3NzUy","avatar_url":"https://avatars0.githubusercontent.com/u/27777752?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-labs","html_url":"https://github.com/uw-labs","followers_url":"https://api.github.com/users/uw-labs/followers","following_url":"https://api.github.com/users/uw-labs/following{/other_user}","gists_url":"https://api.github.com/users/uw-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-labs/subscriptions","organizations_url":"https://api.github.com/users/uw-labs/orgs","repos_url":"https://api.github.com/users/uw-labs/repos","events_url":"https://api.github.com/users/uw-labs/events{/privacy}","received_events_url":"https://api.github.com/users/uw-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/uw-labs/substrate","description":"A message broker abstraction for Go","fork":false,"url":"https://api.github.com/repos/uw-labs/substrate","forks_url":"https://api.github.com/repos/uw-labs/substrate/forks","keys_url":"https://api.github.com/repos/uw-labs/substrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uw-labs/substrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uw-labs/substrate/teams","hooks_url":"https://api.github.com/repos/uw-labs/substrate/hooks","issue_events_url":"https://api.github.com/repos/uw-labs/substrate/issues/events{/number}","events_url":"https://api.github.com/repos/uw-labs/substrate/events","assignees_url":"https://api.github.com/repos/uw-labs/substrate/assignees{/user}","branches_url":"https://api.github.com/repos/uw-labs/substrate/branches{/branch}","tags_url":"https://api.github.com/repos/uw-labs/substrate/tags","blobs_url":"https://api.github.com/repos/uw-labs/substrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uw-labs/substrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uw-labs/substrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/uw-labs/substrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uw-labs/substrate/statuses/{sha}","languages_url":"https://api.github.com/repos/uw-labs/substrate/languages","stargazers_url":"https://api.github.com/repos/uw-labs/substrate/stargazers","contributors_url":"https://api.github.com/repos/uw-labs/substrate/contributors","subscribers_url":"https://api.github.com/repos/uw-labs/substrate/subscribers","subscription_url":"https://api.github.com/repos/uw-labs/substrate/subscription","commits_url":"https://api.github.com/repos/uw-labs/substrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/uw-labs/substrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/uw-labs/substrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/uw-labs/substrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/uw-labs/substrate/contents/{+path}","compare_url":"https://api.github.com/repos/uw-labs/substrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uw-labs/substrate/merges","archive_url":"https://api.github.com/repos/uw-labs/substrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uw-labs/substrate/downloads","issues_url":"https://api.github.com/repos/uw-labs/substrate/issues{/number}","pulls_url":"https://api.github.com/repos/uw-labs/substrate/pulls{/number}","milestones_url":"https://api.github.com/repos/uw-labs/substrate/milestones{/number}","notifications_url":"https://api.github.com/repos/uw-labs/substrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uw-labs/substrate/labels{/name}","releases_url":"https://api.github.com/repos/uw-labs/substrate/releases{/id}","deployments_url":"https://api.github.com/repos/uw-labs/substrate/deployments","created_at":"2018-09-25T12:09:28Z","updated_at":"2018-11-20T13:16:21Z","pushed_at":"2018-11-21T10:21:37Z","git_url":"git://github.com/uw-labs/substrate.git","ssh_url":"git@github.com:uw-labs/substrate.git","clone_url":"https://github.com/uw-labs/substrate.git","svn_url":"https://github.com/uw-labs/substrate","homepage":null,"size":48,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"uw-labs:master","ref":"master","sha":"14524139fda28a41c3fb754eddbcbc65f4f471d1","user":{"login":"uw-labs","id":27777752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3Nzc3NzUy","avatar_url":"https://avatars0.githubusercontent.com/u/27777752?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-labs","html_url":"https://github.com/uw-labs","followers_url":"https://api.github.com/users/uw-labs/followers","following_url":"https://api.github.com/users/uw-labs/following{/other_user}","gists_url":"https://api.github.com/users/uw-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-labs/subscriptions","organizations_url":"https://api.github.com/users/uw-labs/orgs","repos_url":"https://api.github.com/users/uw-labs/repos","events_url":"https://api.github.com/users/uw-labs/events{/privacy}","received_events_url":"https://api.github.com/users/uw-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":150259361,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAyNTkzNjE=","name":"substrate","full_name":"uw-labs/substrate","private":false,"owner":{"login":"uw-labs","id":27777752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3Nzc3NzUy","avatar_url":"https://avatars0.githubusercontent.com/u/27777752?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-labs","html_url":"https://github.com/uw-labs","followers_url":"https://api.github.com/users/uw-labs/followers","following_url":"https://api.github.com/users/uw-labs/following{/other_user}","gists_url":"https://api.github.com/users/uw-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-labs/subscriptions","organizations_url":"https://api.github.com/users/uw-labs/orgs","repos_url":"https://api.github.com/users/uw-labs/repos","events_url":"https://api.github.com/users/uw-labs/events{/privacy}","received_events_url":"https://api.github.com/users/uw-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/uw-labs/substrate","description":"A message broker abstraction for Go","fork":false,"url":"https://api.github.com/repos/uw-labs/substrate","forks_url":"https://api.github.com/repos/uw-labs/substrate/forks","keys_url":"https://api.github.com/repos/uw-labs/substrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uw-labs/substrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uw-labs/substrate/teams","hooks_url":"https://api.github.com/repos/uw-labs/substrate/hooks","issue_events_url":"https://api.github.com/repos/uw-labs/substrate/issues/events{/number}","events_url":"https://api.github.com/repos/uw-labs/substrate/events","assignees_url":"https://api.github.com/repos/uw-labs/substrate/assignees{/user}","branches_url":"https://api.github.com/repos/uw-labs/substrate/branches{/branch}","tags_url":"https://api.github.com/repos/uw-labs/substrate/tags","blobs_url":"https://api.github.com/repos/uw-labs/substrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uw-labs/substrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uw-labs/substrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/uw-labs/substrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uw-labs/substrate/statuses/{sha}","languages_url":"https://api.github.com/repos/uw-labs/substrate/languages","stargazers_url":"https://api.github.com/repos/uw-labs/substrate/stargazers","contributors_url":"https://api.github.com/repos/uw-labs/substrate/contributors","subscribers_url":"https://api.github.com/repos/uw-labs/substrate/subscribers","subscription_url":"https://api.github.com/repos/uw-labs/substrate/subscription","commits_url":"https://api.github.com/repos/uw-labs/substrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/uw-labs/substrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/uw-labs/substrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/uw-labs/substrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/uw-labs/substrate/contents/{+path}","compare_url":"https://api.github.com/repos/uw-labs/substrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uw-labs/substrate/merges","archive_url":"https://api.github.com/repos/uw-labs/substrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uw-labs/substrate/downloads","issues_url":"https://api.github.com/repos/uw-labs/substrate/issues{/number}","pulls_url":"https://api.github.com/repos/uw-labs/substrate/pulls{/number}","milestones_url":"https://api.github.com/repos/uw-labs/substrate/milestones{/number}","notifications_url":"https://api.github.com/repos/uw-labs/substrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uw-labs/substrate/labels{/name}","releases_url":"https://api.github.com/repos/uw-labs/substrate/releases{/id}","deployments_url":"https://api.github.com/repos/uw-labs/substrate/deployments","created_at":"2018-09-25T12:09:28Z","updated_at":"2018-11-20T13:16:21Z","pushed_at":"2018-11-21T10:21:37Z","git_url":"git://github.com/uw-labs/substrate.git","ssh_url":"git@github.com:uw-labs/substrate.git","clone_url":"https://github.com/uw-labs/substrate.git","svn_url":"https://github.com/uw-labs/substrate","homepage":null,"size":48,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uw-labs/substrate/pulls/18"},"html":{"href":"https://github.com/uw-labs/substrate/pull/18"},"issue":{"href":"https://api.github.com/repos/uw-labs/substrate/issues/18"},"comments":{"href":"https://api.github.com/repos/uw-labs/substrate/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/uw-labs/substrate/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/uw-labs/substrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uw-labs/substrate/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/uw-labs/substrate/statuses/742bd9b8ee6a200f88f34669e673231e128a2aa7"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mjgarton","id":11156949,"node_id":"MDQ6VXNlcjExMTU2OTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/11156949?v=4","gravatar_id":"","url":"https://api.github.com/users/mjgarton","html_url":"https://github.com/mjgarton","followers_url":"https://api.github.com/users/mjgarton/followers","following_url":"https://api.github.com/users/mjgarton/following{/other_user}","gists_url":"https://api.github.com/users/mjgarton/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgarton/subscriptions","organizations_url":"https://api.github.com/users/mjgarton/orgs","repos_url":"https://api.github.com/users/mjgarton/repos","events_url":"https://api.github.com/users/mjgarton/events{/privacy}","received_events_url":"https://api.github.com/users/mjgarton/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":632,"deletions":0,"changed_files":9}}
{"actor":{"display_login":"mjgarton"}}