Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- tcpConnection :: HostName -> Port -> IO TCPConnection
- sendEvents :: TCPConnection -> Seq Event -> IO ()
- sendMsg :: TCPConnection -> Msg -> IO (Either Msg Msg)
- type TCPConnection = TVar ClientInfo
- type Port = Int
Documentation
tcpConnection :: HostName -> Port -> IO TCPConnection Source #
sendEvents :: TCPConnection -> Seq Event -> IO () Source #
Send a list of Riemann events
Host and Time will be added if they do not exist on the Event
sendMsg :: TCPConnection -> Msg -> IO (Either Msg Msg) Source #
Attempts to send a message and return the response.
If the connection is down, this function will trigger one reconnection attempt. If that succeeds the message will be sent. If it fails, the message is dropped and will need to be resent by you.
type TCPConnection = TVar ClientInfo Source #