hsnsq-0.1.2.0: Haskell NSQ client.

Safe HaskellNone
LanguageHaskell2010

Network.NSQ.Identify

Description

 

Synopsis

Documentation

defaultIdentify :: Text -> Text -> IdentifyMetadata Source

Build a default IdentifyMetadata that makes sense which is basically just setting the client Identification and leaving the rest of the settings up to the server to determine.

defaultUserAgent :: Text Source

The default user agent to send, for identifying what client library is connecting to the nsqd.

encodeMetadata :: IdentifyMetadata -> ByteString Source

Encode the metadata from IdentifyMetadata into a ByteString for feeding the Identify Command for sending the metadata to the nsq daemon as part of the feature negotiation.