Safe Haskell | None |
---|---|
Language | Haskell2010 |
- makeMessageParseError :: String -> ProtocolError
- makeSubject :: ByteString -> Subject
- maxPayloadSize :: NatsServerInfo -> Int
- data NatsServerInfo = NatsServerInfo {}
- data NatsConnectionOptions = NatsConnectionOptions {
- clnt_verbose :: Bool
- clnt_pedantic :: Bool
- clnt_ssl_required :: Bool
- clnt_name :: Text
- clnt_lang :: Text
- clnt_version :: Text
- clnt_protocol :: Int
- newtype Subject = Subject ByteString
- data Subscription
- newtype SubscriptionId = SubscriptionId ByteString
- data ProtocolError = MessageParseError String
Documentation
makeMessageParseError :: String -> ProtocolError Source #
Create a MessageParseError
with the given reason
makeSubject :: ByteString -> Subject Source #
Create a Subject with the given ByteString as message
maxPayloadSize :: NatsServerInfo -> Int Source #
Retrieve the maximum payload size, in bytes
data NatsServerInfo Source #
Server information returned on connection
NatsServerInfo | |
|
data NatsConnectionOptions Source #
Client connection options sent when issuing a CONNECT to the server See http://nats.io/documentation/internals/nats-protocol/
NatsConnectionOptions | |
|
Name of a NATS subject. Must be a dot-separated alphanumeric string, with ">" and "." as wildcard characters. See http://nats.io/documentation/internals/nats-protocol/
newtype SubscriptionId Source #
A Subscription
identifier
data ProtocolError Source #
Type for unexpected protocol errors
MessageParseError String | The message from the server could not be parsed. |