{"action":"created","comment":{"url":"https://api.github.com/repos/tendermint/go-events/pulls/comments/67451696","id":67451696,"diff_hunk":"@@ -0,0 +1,424 @@\n+package events\n+\n+import (\n+\t\"fmt\"\n+\t\"math/rand\"\n+\t\"testing\"\n+\t\"time\"\n+)\n+\n+func TestStartEventSwitch(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\t// calls over tendermint/go-common.BaseService\n+\tstarted, err := evsw.Start()\n+\tif started != true {\n+\t\tt.Fatalf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tif err != nil {\n+\t\tt.Fatalf(\"Started with error: %v\", err)\n+\t}\n+}\n+\n+func TestAddListenerForEvent(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\tstarted, err := evsw.Start()\n+\tif started == false || err != nil {\n+\t\tt.Errorf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tmessages := make(chan EventData)\n+\tevsw.AddListenerForEvent(\"listener\", \"event\",\n+\t\tfunc(data EventData) {\n+\t\t\tmessages <- data\n+\t\t})\n+\tgo evsw.FireEvent(\"event\", \"data\")\n+\treceived := <-messages\n+\tif received != \"data\" {\n+\t\tt.Errorf(\"Message received does not match: %v\", received)\n+\t}\n+}\n+\n+func TestAddListenerForMultipleEvents(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\tstarted, err := evsw.Start()\n+\tif started == false || err != nil {\n+\t\tt.Errorf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tdoneSum := make(chan uint64)\n+\tdoneSending := make(chan uint64)\n+\tnumbers := make(chan uint64, 4)\n+\t// subscribe one listener for one event\n+\tevsw.AddListenerForEvent(\"listener\", \"event\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers <- data.(uint64)\n+\t\t})\n+\t// collect received events\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum <- sum\n+\t\t\t\tclose(doneSum)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\t// go fire events\n+\tgo func() {\n+\t\tvar sentSum uint64 = 0\n+\t\tfor i := uint64(1); i <= uint64(1000); i++ {\n+\t\t\tsentSum += i\n+\t\t\tevsw.FireEvent(\"event\", i)\n+\t\t}\n+\t\tclose(numbers)\n+\t\tdoneSending <- sentSum\n+\t\tclose(doneSending)\n+\t}()\n+\tcheckSum := <-doneSending\n+\teventSum := <-doneSum\n+\tif checkSum != eventSum {\n+\t\tt.Errorf(\"Not all messages sent were received.\\n\")\n+\t}\n+}\n+\n+func TestAddListenerForDifferentEvents(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\tstarted, err := evsw.Start()\n+\tif started == false || err != nil {\n+\t\tt.Errorf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tdoneSum := make(chan uint64)\n+\tdoneSending1 := make(chan uint64)\n+\tdoneSending2 := make(chan uint64)\n+\tdoneSending3 := make(chan uint64)\n+\tnumbers := make(chan uint64, 4)\n+\t// subscribe one listener to three events\n+\tevsw.AddListenerForEvent(\"listener\", \"event1\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener\", \"event2\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener\", \"event3\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers <- data.(uint64)\n+\t\t})\n+\t// collect received events\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum <- sum\n+\t\t\t\tclose(doneSum)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\t// go fire events\n+\tsendEvents := func(event string, doneChan chan uint64) {\n+\t\tvar sentSum uint64 = 0\n+\t\tfor i := uint64(1); i <= uint64(1000); i++ {\n+\t\t\tsentSum += i\n+\t\t\tevsw.FireEvent(event, i)\n+\t\t}\n+\t\tdoneChan <- sentSum\n+\t\tclose(doneChan)\n+\t\treturn\n+\t}\n+\tgo sendEvents(\"event1\", doneSending1)\n+\tgo sendEvents(\"event2\", doneSending2)\n+\tgo sendEvents(\"event3\", doneSending3)\n+\tvar checkSum uint64 = 0\n+\tcheckSum += <-doneSending1\n+\tcheckSum += <-doneSending2\n+\tcheckSum += <-doneSending3\n+\tclose(numbers)\n+\teventSum := <-doneSum\n+\tif checkSum != eventSum {\n+\t\tt.Errorf(\"Not all messages sent were received.\\n\")\n+\t}\n+}\n+\n+func TestAddDifferentListenerForDifferentEvents(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\tstarted, err := evsw.Start()\n+\tif started == false || err != nil {\n+\t\tt.Errorf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tdoneSum1 := make(chan uint64)\n+\tdoneSum2 := make(chan uint64)\n+\tdoneSending1 := make(chan uint64)\n+\tdoneSending2 := make(chan uint64)\n+\tdoneSending3 := make(chan uint64)\n+\tnumbers1 := make(chan uint64, 4)\n+\tnumbers2 := make(chan uint64, 4)\n+\t// subscribe two listener to three events\n+\tevsw.AddListenerForEvent(\"listener1\", \"event1\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers1 <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener1\", \"event2\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers1 <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener1\", \"event3\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers1 <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener2\", \"event2\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers2 <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener2\", \"event3\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers2 <- data.(uint64)\n+\t\t})\n+\t// collect received events for listener1\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers1\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum1 <- sum\n+\t\t\t\tclose(doneSum1)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\t// collect received events for listener2\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers2\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum2 <- sum\n+\t\t\t\tclose(doneSum2)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\n+\t// go fire events\n+\tsendEvents := func(event string, doneChan chan uint64, offset uint64) {\n+\t\tvar sentSum uint64 = 0\n+\t\tfor i := offset; i <= offset+uint64(999); i++ {\n+\t\t\tsentSum += i\n+\t\t\tevsw.FireEvent(event, i)\n+\t\t}\n+\t\tdoneChan <- sentSum\n+\t\tclose(doneChan)\n+\t\treturn\n+\t}\n+\tgo sendEvents(\"event1\", doneSending1, uint64(1))\n+\tgo sendEvents(\"event2\", doneSending2, uint64(1001))\n+\tgo sendEvents(\"event3\", doneSending3, uint64(2001))\n+\tcheckSumEvent1 := <-doneSending1\n+\tcheckSumEvent2 := <-doneSending2\n+\tcheckSumEvent3 := <-doneSending3\n+\tcheckSum1 := checkSumEvent1 + checkSumEvent2 + checkSumEvent3\n+\tcheckSum2 := checkSumEvent2 + checkSumEvent3\n+\tclose(numbers1)\n+\tclose(numbers2)\n+\teventSum1 := <-doneSum1\n+\teventSum2 := <-doneSum2\n+\tif checkSum1 != eventSum1 ||\n+\t\tcheckSum2 != eventSum2 {\n+\t\tt.Errorf(\"Not all messages sent were received for different listeners to different events.\\n\")\n+\t}\n+}\n+\n+func TestAddAndRemoveListenerForEvents(t *testing.T) {\n+\tevsw := NewEventSwitch()\n+\tstarted, err := evsw.Start()\n+\tif started == false || err != nil {\n+\t\tt.Errorf(\"Failed to start EventSwitch, error: %v\", err)\n+\t}\n+\tdoneSum1 := make(chan uint64)\n+\tdoneSum2 := make(chan uint64)\n+\tdoneSending1 := make(chan uint64)\n+\tdoneSending2 := make(chan uint64)\n+\tnumbers1 := make(chan uint64, 4)\n+\tnumbers2 := make(chan uint64, 4)\n+\t// subscribe two listener to three events\n+\tevsw.AddListenerForEvent(\"listener\", \"event1\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers1 <- data.(uint64)\n+\t\t})\n+\tevsw.AddListenerForEvent(\"listener\", \"event2\",\n+\t\tfunc(data EventData) {\n+\t\t\tnumbers2 <- data.(uint64)\n+\t\t})\n+\t// collect received events for event1\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers1\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum1 <- sum\n+\t\t\t\tclose(doneSum1)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\t// collect received events for event2\n+\tgo func() {\n+\t\tvar sum uint64 = 0\n+\t\tfor {\n+\t\t\tj, more := <-numbers2\n+\t\t\tsum += j\n+\t\t\tif !more {\n+\t\t\t\tdoneSum2 <- sum\n+\t\t\t\tclose(doneSum2)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\t// go fire events\n+\tsendEvents := func(event string, doneChan chan uint64, offset uint64) {\n+\t\tvar sentSum uint64 = 0\n+\t\tfor i := offset; i <= offset+uint64(999); i++ {\n+\t\t\tsentSum += i\n+\t\t\tevsw.FireEvent(event, i)\n+\t\t}\n+\t\tdoneChan <- sentSum\n+\t\tclose(doneChan)\n+\t\treturn\n+\t}\n+\tgo sendEvents(\"event1\", doneSending1, uint64(1))\n+\tcheckSumEvent1 := <-doneSending1\n+\t// after sending all event1, unsubscribe for all events\n+\tevsw.RemoveListener(\"listener\")\n+\tgo sendEvents(\"event2\", doneSending2, uint64(1001))\n+\tcheckSumEvent2 := <-doneSending2\n+\tclose(numbers1)\n+\tclose(numbers2)\n+\teventSum1 := <-doneSum1\n+\teventSum2 := <-doneSum2\n+\tif checkSumEvent1 != eventSum1 ||\n+\t\tcheckSumEvent2 != uint64(1500500) ||","path":"events_test.go","position":306,"original_position":306,"commit_id":"7f9f2c3d44536cee9803fb6e9bf945bbcd047b30","original_commit_id":"7f9f2c3d44536cee9803fb6e9bf945bbcd047b30","user":{"login":"ebuchman","id":2300911,"avatar_url":"https://avatars.githubusercontent.com/u/2300911?v=3","gravatar_id":"","url":"https://api.github.com/users/ebuchman","html_url":"https://github.com/ebuchman","followers_url":"https://api.github.com/users/ebuchman/followers","following_url":"https://api.github.com/users/ebuchman/following{/other_user}","gists_url":"https://api.github.com/users/ebuchman/gists{/gist_id}","starred_url":"https://api.github.com/users/ebuchman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebuchman/subscriptions","organizations_url":"https://api.github.com/users/ebuchman/orgs","repos_url":"https://api.github.com/users/ebuchman/repos","events_url":"https://api.github.com/users/ebuchman/events{/privacy}","received_events_url":"https://api.github.com/users/ebuchman/received_events","type":"User","site_admin":false},"body":"fragile; arguably unecessary?","created_at":"2016-06-17T01:51:13Z","updated_at":"2016-06-17T01:51:13Z","html_url":"https://github.com/tendermint/go-events/pull/2#discussion_r67451696","pull_request_url":"https://api.github.com/repos/tendermint/go-events/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/comments/67451696"},"html":{"href":"https://github.com/tendermint/go-events/pull/2#discussion_r67451696"},"pull_request":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tendermint/go-events/pulls/2","id":74173063,"html_url":"https://github.com/tendermint/go-events/pull/2","diff_url":"https://github.com/tendermint/go-events/pull/2.diff","patch_url":"https://github.com/tendermint/go-events/pull/2.patch","issue_url":"https://api.github.com/repos/tendermint/go-events/issues/2","number":2,"state":"open","locked":false,"title":"Add tests to assert correct behaviour ...","user":{"login":"benjaminbollen","id":5057507,"avatar_url":"https://avatars.githubusercontent.com/u/5057507?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminbollen","html_url":"https://github.com/benjaminbollen","followers_url":"https://api.github.com/users/benjaminbollen/followers","following_url":"https://api.github.com/users/benjaminbollen/following{/other_user}","gists_url":"https://api.github.com/users/benjaminbollen/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminbollen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminbollen/subscriptions","organizations_url":"https://api.github.com/users/benjaminbollen/orgs","repos_url":"https://api.github.com/users/benjaminbollen/repos","events_url":"https://api.github.com/users/benjaminbollen/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminbollen/received_events","type":"User","site_admin":false},"body":"... and attempt to reproduce potential panic on lock\r\n\r\nThis first of all offers some unit tests if so desired by tendermint; while there is no CI set up, locally these tests all pass.\r\n\r\nThe first 6 tests assert normal behaviour:\r\n- TestStartEventSwitch\r\n- TestAddListenerForEvent\r\n- TestAddListenerForMultipleEvents\r\n- TestAddListenerForDifferentEvents\r\n- TestAddDifferentListenerForDifferentEvents\r\n- TestAddAndRemoveListenerForEvents\r\n\r\nThe seventh test is an attempt to recreate in a reproducible manner the reported crash when removing listeners under some load\r\n- TestRemoveListenersAsync\r\nThis test also passes, and does not seem to cause a runtime error.\r\n\r\nIt should be noted that this demonstrates:\r\n1. that these tests assert good behaviour of go-events, and do not expose unknown bugs\r\n2. that I have so far failed to reproduce the reported behaviour in these unit tests\r\nIt does not disprove the reported bug in https://github.com/eris-ltd/eris-db/issues/143\r\n\r\n@ebuchman: you do not have to merge this; for the purpose of unit tests, the tests can be condensed\r\n@dennismckinnon: I will need to move closer to the reported conditions to try to reproduce the bug.\r\n\r\nPS: as I write this I realise that the version vendored in eris-db, where the bug was reported, is not necessarily the up-to-date version against which these test have been run.  That can be another assertion to make.","created_at":"2016-06-17T00:21:13Z","updated_at":"2016-06-17T01:51:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61e3075199c0665517e00c8377131871f699e30e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tendermint/go-events/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tendermint/go-events/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tendermint/go-events/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tendermint/go-events/issues/2/comments","statuses_url":"https://api.github.com/repos/tendermint/go-events/statuses/7f9f2c3d44536cee9803fb6e9bf945bbcd047b30","head":{"label":"benjaminbollen:tests","ref":"tests","sha":"7f9f2c3d44536cee9803fb6e9bf945bbcd047b30","user":{"login":"benjaminbollen","id":5057507,"avatar_url":"https://avatars.githubusercontent.com/u/5057507?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminbollen","html_url":"https://github.com/benjaminbollen","followers_url":"https://api.github.com/users/benjaminbollen/followers","following_url":"https://api.github.com/users/benjaminbollen/following{/other_user}","gists_url":"https://api.github.com/users/benjaminbollen/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminbollen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminbollen/subscriptions","organizations_url":"https://api.github.com/users/benjaminbollen/orgs","repos_url":"https://api.github.com/users/benjaminbollen/repos","events_url":"https://api.github.com/users/benjaminbollen/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminbollen/received_events","type":"User","site_admin":false},"repo":{"id":61194094,"name":"go-events","full_name":"benjaminbollen/go-events","owner":{"login":"benjaminbollen","id":5057507,"avatar_url":"https://avatars.githubusercontent.com/u/5057507?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminbollen","html_url":"https://github.com/benjaminbollen","followers_url":"https://api.github.com/users/benjaminbollen/followers","following_url":"https://api.github.com/users/benjaminbollen/following{/other_user}","gists_url":"https://api.github.com/users/benjaminbollen/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminbollen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminbollen/subscriptions","organizations_url":"https://api.github.com/users/benjaminbollen/orgs","repos_url":"https://api.github.com/users/benjaminbollen/repos","events_url":"https://api.github.com/users/benjaminbollen/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminbollen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benjaminbollen/go-events","description":"PubSub in Go","fork":true,"url":"https://api.github.com/repos/benjaminbollen/go-events","forks_url":"https://api.github.com/repos/benjaminbollen/go-events/forks","keys_url":"https://api.github.com/repos/benjaminbollen/go-events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benjaminbollen/go-events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benjaminbollen/go-events/teams","hooks_url":"https://api.github.com/repos/benjaminbollen/go-events/hooks","issue_events_url":"https://api.github.com/repos/benjaminbollen/go-events/issues/events{/number}","events_url":"https://api.github.com/repos/benjaminbollen/go-events/events","assignees_url":"https://api.github.com/repos/benjaminbollen/go-events/assignees{/user}","branches_url":"https://api.github.com/repos/benjaminbollen/go-events/branches{/branch}","tags_url":"https://api.github.com/repos/benjaminbollen/go-events/tags","blobs_url":"https://api.github.com/repos/benjaminbollen/go-events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benjaminbollen/go-events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benjaminbollen/go-events/git/refs{/sha}","trees_url":"https://api.github.com/repos/benjaminbollen/go-events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benjaminbollen/go-events/statuses/{sha}","languages_url":"https://api.github.com/repos/benjaminbollen/go-events/languages","stargazers_url":"https://api.github.com/repos/benjaminbollen/go-events/stargazers","contributors_url":"https://api.github.com/repos/benjaminbollen/go-events/contributors","subscribers_url":"https://api.github.com/repos/benjaminbollen/go-events/subscribers","subscription_url":"https://api.github.com/repos/benjaminbollen/go-events/subscription","commits_url":"https://api.github.com/repos/benjaminbollen/go-events/commits{/sha}","git_commits_url":"https://api.github.com/repos/benjaminbollen/go-events/git/commits{/sha}","comments_url":"https://api.github.com/repos/benjaminbollen/go-events/comments{/number}","issue_comment_url":"https://api.github.com/repos/benjaminbollen/go-events/issues/comments{/number}","contents_url":"https://api.github.com/repos/benjaminbollen/go-events/contents/{+path}","compare_url":"https://api.github.com/repos/benjaminbollen/go-events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benjaminbollen/go-events/merges","archive_url":"https://api.github.com/repos/benjaminbollen/go-events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benjaminbollen/go-events/downloads","issues_url":"https://api.github.com/repos/benjaminbollen/go-events/issues{/number}","pulls_url":"https://api.github.com/repos/benjaminbollen/go-events/pulls{/number}","milestones_url":"https://api.github.com/repos/benjaminbollen/go-events/milestones{/number}","notifications_url":"https://api.github.com/repos/benjaminbollen/go-events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benjaminbollen/go-events/labels{/name}","releases_url":"https://api.github.com/repos/benjaminbollen/go-events/releases{/id}","deployments_url":"https://api.github.com/repos/benjaminbollen/go-events/deployments","created_at":"2016-06-15T09:09:40Z","updated_at":"2016-06-15T09:09:41Z","pushed_at":"2016-06-17T00:59:11Z","git_url":"git://github.com/benjaminbollen/go-events.git","ssh_url":"git@github.com:benjaminbollen/go-events.git","clone_url":"https://github.com/benjaminbollen/go-events.git","svn_url":"https://github.com/benjaminbollen/go-events","homepage":null,"size":14,"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":"tendermint:master","ref":"master","sha":"7b75ca7bb55aa25e9ef765eb8c0b69486b227357","user":{"login":"tendermint","id":7572940,"avatar_url":"https://avatars.githubusercontent.com/u/7572940?v=3","gravatar_id":"","url":"https://api.github.com/users/tendermint","html_url":"https://github.com/tendermint","followers_url":"https://api.github.com/users/tendermint/followers","following_url":"https://api.github.com/users/tendermint/following{/other_user}","gists_url":"https://api.github.com/users/tendermint/gists{/gist_id}","starred_url":"https://api.github.com/users/tendermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendermint/subscriptions","organizations_url":"https://api.github.com/users/tendermint/orgs","repos_url":"https://api.github.com/users/tendermint/repos","events_url":"https://api.github.com/users/tendermint/events{/privacy}","received_events_url":"https://api.github.com/users/tendermint/received_events","type":"Organization","site_admin":false},"repo":{"id":49529221,"name":"go-events","full_name":"tendermint/go-events","owner":{"login":"tendermint","id":7572940,"avatar_url":"https://avatars.githubusercontent.com/u/7572940?v=3","gravatar_id":"","url":"https://api.github.com/users/tendermint","html_url":"https://github.com/tendermint","followers_url":"https://api.github.com/users/tendermint/followers","following_url":"https://api.github.com/users/tendermint/following{/other_user}","gists_url":"https://api.github.com/users/tendermint/gists{/gist_id}","starred_url":"https://api.github.com/users/tendermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendermint/subscriptions","organizations_url":"https://api.github.com/users/tendermint/orgs","repos_url":"https://api.github.com/users/tendermint/repos","events_url":"https://api.github.com/users/tendermint/events{/privacy}","received_events_url":"https://api.github.com/users/tendermint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tendermint/go-events","description":"PubSub in Go","fork":false,"url":"https://api.github.com/repos/tendermint/go-events","forks_url":"https://api.github.com/repos/tendermint/go-events/forks","keys_url":"https://api.github.com/repos/tendermint/go-events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tendermint/go-events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tendermint/go-events/teams","hooks_url":"https://api.github.com/repos/tendermint/go-events/hooks","issue_events_url":"https://api.github.com/repos/tendermint/go-events/issues/events{/number}","events_url":"https://api.github.com/repos/tendermint/go-events/events","assignees_url":"https://api.github.com/repos/tendermint/go-events/assignees{/user}","branches_url":"https://api.github.com/repos/tendermint/go-events/branches{/branch}","tags_url":"https://api.github.com/repos/tendermint/go-events/tags","blobs_url":"https://api.github.com/repos/tendermint/go-events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tendermint/go-events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tendermint/go-events/git/refs{/sha}","trees_url":"https://api.github.com/repos/tendermint/go-events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tendermint/go-events/statuses/{sha}","languages_url":"https://api.github.com/repos/tendermint/go-events/languages","stargazers_url":"https://api.github.com/repos/tendermint/go-events/stargazers","contributors_url":"https://api.github.com/repos/tendermint/go-events/contributors","subscribers_url":"https://api.github.com/repos/tendermint/go-events/subscribers","subscription_url":"https://api.github.com/repos/tendermint/go-events/subscription","commits_url":"https://api.github.com/repos/tendermint/go-events/commits{/sha}","git_commits_url":"https://api.github.com/repos/tendermint/go-events/git/commits{/sha}","comments_url":"https://api.github.com/repos/tendermint/go-events/comments{/number}","issue_comment_url":"https://api.github.com/repos/tendermint/go-events/issues/comments{/number}","contents_url":"https://api.github.com/repos/tendermint/go-events/contents/{+path}","compare_url":"https://api.github.com/repos/tendermint/go-events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tendermint/go-events/merges","archive_url":"https://api.github.com/repos/tendermint/go-events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tendermint/go-events/downloads","issues_url":"https://api.github.com/repos/tendermint/go-events/issues{/number}","pulls_url":"https://api.github.com/repos/tendermint/go-events/pulls{/number}","milestones_url":"https://api.github.com/repos/tendermint/go-events/milestones{/number}","notifications_url":"https://api.github.com/repos/tendermint/go-events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tendermint/go-events/labels{/name}","releases_url":"https://api.github.com/repos/tendermint/go-events/releases{/id}","deployments_url":"https://api.github.com/repos/tendermint/go-events/deployments","created_at":"2016-01-12T21:13:25Z","updated_at":"2016-05-20T20:18:02Z","pushed_at":"2016-06-17T01:01:03Z","git_url":"git://github.com/tendermint/go-events.git","ssh_url":"git@github.com:tendermint/go-events.git","clone_url":"https://github.com/tendermint/go-events.git","svn_url":"https://github.com/tendermint/go-events","homepage":null,"size":11,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/2"},"html":{"href":"https://github.com/tendermint/go-events/pull/2"},"issue":{"href":"https://api.github.com/repos/tendermint/go-events/issues/2"},"comments":{"href":"https://api.github.com/repos/tendermint/go-events/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tendermint/go-events/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tendermint/go-events/statuses/7f9f2c3d44536cee9803fb6e9bf945bbcd047b30"}}}}
{"actor":{"display_login":"ebuchman"}}