Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to retrieve list of topics from nsqlookupd #38

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

add ability to retrieve list of topics from nsqlookupd #38

wants to merge 1 commit into from

Conversation

stuart-warren
Copy link

fairly self explanatory

fixes #37

$ irb
irb(main):001:0> require 'krakow'
D, [2015-07-10T16:59:27.201807 #22698] DEBUG -- : Celluloid 0.17.0 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
=> true
irb(main):002:0> d = Krakow::Discovery.new(:nsqlookupd => ["http://server1:4161"])
=> <Krakow::Discovery:70146309073700 [{:nsqlookupd=>["http://server1:4161"]}]>
irb(main):003:0> d.topics
D, [2015-07-10T16:59:50.116443 #22698] DEBUG -- : <Krakow::Discovery:70146309073700>: Requesting lookup of topics - http://server1:4161/topics
D, [2015-07-10T16:59:50.128586 #22698] DEBUG -- : <Krakow::Discovery:70146309073700>: Lookup response (http://server1:4161/topics): {"status_code"=>200, "status_txt"=>"OK", "data"=>{"topics"=>["logs.system.docker", "logs.system.marathon", "logs.docker.test1"]}}
D, [2015-07-10T16:59:50.128668 #22698] DEBUG -- : <Krakow::Discovery:70146309073700>: Discovery lookup result: ["logs.system.docker", "logs.system.marathon", "logs.docker.test1"]
=> ["logs.system.docker", "logs.system.marathon", "logs.docker.test1"]
irb(main):004:0>
D, [2015-07-10T17:00:28.188155 #22698] DEBUG -- : Terminating 5 actors...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant