nats-client-0.1.0.0: Another Haskell client for NATS (https://nats.io)

Safe HaskellNone
LanguageHaskell2010

Network.Nats.Protocol.Types

Description

 

Synopsis

Documentation

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

Constructors

NatsServerInfo 

Fields

Instances

Show NatsServerInfo Source # 
Generic NatsServerInfo Source # 

Associated Types

type Rep NatsServerInfo :: * -> * #

ToJSON NatsServerInfo Source # 
FromJSON NatsServerInfo Source # 
type Rep NatsServerInfo Source # 

data NatsConnectionOptions Source #

Client connection options sent when issuing a CONNECT to the server See http://nats.io/documentation/internals/nats-protocol/

Constructors

NatsConnectionOptions 

Fields

Instances

Show NatsConnectionOptions Source # 
Generic NatsConnectionOptions Source # 
ToJSON NatsConnectionOptions Source # 
FromJSON NatsConnectionOptions Source # 
Default NatsConnectionOptions Source # 
type Rep NatsConnectionOptions Source # 

newtype Subject Source #

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/

Constructors

Subject ByteString 

Instances

data ProtocolError Source #

Type for unexpected protocol errors

Constructors

MessageParseError String

The message from the server could not be parsed.