{"action":"created","issue":{"url":"https://api.github.com/repos/micro/go-plugins/issues/24","repository_url":"https://api.github.com/repos/micro/go-plugins","labels_url":"https://api.github.com/repos/micro/go-plugins/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/micro/go-plugins/issues/24/comments","events_url":"https://api.github.com/repos/micro/go-plugins/issues/24/events","html_url":"https://github.com/micro/go-plugins/pull/24","id":153849668,"number":24,"title":"zookeeper registry","user":{"login":"HeavyHorst","id":16866547,"avatar_url":"https://avatars.githubusercontent.com/u/16866547?v=3","gravatar_id":"","url":"https://api.github.com/users/HeavyHorst","html_url":"https://github.com/HeavyHorst","followers_url":"https://api.github.com/users/HeavyHorst/followers","following_url":"https://api.github.com/users/HeavyHorst/following{/other_user}","gists_url":"https://api.github.com/users/HeavyHorst/gists{/gist_id}","starred_url":"https://api.github.com/users/HeavyHorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeavyHorst/subscriptions","organizations_url":"https://api.github.com/users/HeavyHorst/orgs","repos_url":"https://api.github.com/users/HeavyHorst/repos","events_url":"https://api.github.com/users/HeavyHorst/events{/privacy}","received_events_url":"https://api.github.com/users/HeavyHorst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-09T19:22:55Z","updated_at":"2016-05-15T13:06:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/micro/go-plugins/pulls/24","html_url":"https://github.com/micro/go-plugins/pull/24","diff_url":"https://github.com/micro/go-plugins/pull/24.diff","patch_url":"https://github.com/micro/go-plugins/pull/24.patch"},"body":"#17 I've started working on a zookeeper registry.\r\n\r\nEverything seems to work, but some more testing may be necessary.\r\n\r\nThe watcher code is also a little bit complicated because zookeeper doesn't handle recursive watch and treats node and directory watches differently."},"comment":{"url":"https://api.github.com/repos/micro/go-plugins/issues/comments/219284779","html_url":"https://github.com/micro/go-plugins/pull/24#issuecomment-219284779","issue_url":"https://api.github.com/repos/micro/go-plugins/issues/24","id":219284779,"user":{"login":"HeavyHorst","id":16866547,"avatar_url":"https://avatars.githubusercontent.com/u/16866547?v=3","gravatar_id":"","url":"https://api.github.com/users/HeavyHorst","html_url":"https://github.com/HeavyHorst","followers_url":"https://api.github.com/users/HeavyHorst/followers","following_url":"https://api.github.com/users/HeavyHorst/following{/other_user}","gists_url":"https://api.github.com/users/HeavyHorst/gists{/gist_id}","starred_url":"https://api.github.com/users/HeavyHorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeavyHorst/subscriptions","organizations_url":"https://api.github.com/users/HeavyHorst/orgs","repos_url":"https://api.github.com/users/HeavyHorst/repos","events_url":"https://api.github.com/users/HeavyHorst/events{/privacy}","received_events_url":"https://api.github.com/users/HeavyHorst/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T13:06:49Z","updated_at":"2016-05-15T13:06:49Z","body":"The watcher only seems to work if at least one service is already registered when it is started:\r\n\r\n```\r\ngo run test.go                                                                                                                                                                                                :(\r\n2016/05/15 14:59:19 Connected to 172.17.0.4:2181\r\n2016/05/15 14:59:19 Authenticated: id=95899106014855186, timeout=5000\r\n&{Action:delete Service:0xc8204500c0}\r\n&{Action:create Service:0xc820450360}\r\n&{Action:delete Service:0xc82005eae0}\r\n&{Action:create Service:0xc820115020}\r\n&{Action:delete Service:0xc8201152c0}\r\n```\r\n\r\nI will fix this tomorrow when i find some time."}}