mattermost-api-50200.0.1: 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
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 Value) 
HttpResponse Int String (Maybe Value) 
WebSocketRequest Value 
WebSocketResponse (Either String Value)

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

WebSocketPing 
WebSocketPong 

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