Nsqlookupd client¶
-
class
gnsq.
LookupdClient
(host='localhost', port=4161, **kwargs)[source]¶ Low level http client for nsqlookupd.
Parameters: - host – nsqlookupd host address (default: localhost)
- port – nsqlookupd http port (default: 4161)
- useragent – useragent sent to nsqlookupd (default:
<client_library_name>/<version>
) - connection_class – override the http connection class
-
classmethod
from_url
(url, **kwargs)¶ Create a client from a url.
-
class
gnsq.
Lookupd
(address='http://localhost:4161/', **kwargs)[source]¶ Use
LookupdClient
instead.Deprecated since version 1.0.0.
-
base_url
¶ Use
LookupdClient.address
instead.Deprecated since version 1.0.0.
-
tombstone_topic_producer
(topic, node)[source]¶ Use
LookupdClient.tombstone_topic()
instead.Deprecated since version 1.0.0.
-