mattermost-api-50200.13.0: Client API for Mattermost chat system
Safe HaskellNone
LanguageHaskell2010

Network.Mattermost.Types.Base

Description

These are the fundamental types that are used for building everything else. Specifically, these types are used by the Network.Mattermost.Types.Internal, but are not subject to the cautions that as associated with the latter.

Synopsis

Documentation

type Port = Int Source #

type Logger = LogEvent -> IO () Source #

A Logger is any function which responds to log events:

data LogEvent Source #

If there is a Logger in the ConnectionData struct, it will be sporadically called with values of type LogEvent.

Instances

Instances details
Eq LogEvent Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Show LogEvent Source # 
Instance details

Defined in Network.Mattermost.Types.Base

data LogEventType Source #

A LogEventType describes the particular event that happened

Constructors

HttpRequest RequestMethod String (Maybe String) 
HttpResponse Int String (Maybe String) 
WebSocketRequest Value 
WebSocketResponse (Either String String)

Left means we got an exception trying to parse the response; Right means we succeeded and here it is.

WebSocketPing 
WebSocketPong 

Instances

Instances details
Eq LogEventType Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Show LogEventType Source # 
Instance details

Defined in Network.Mattermost.Types.Base

newtype ServerTime Source #

The time as provided by the Server. This is a wrapper designed to warn against naive comparisons to local times: the server's time and local times are not necessarily synchronized.

Constructors

ServerTime