Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- type Hostname = Text
- type Port = Int
- type Logger = LogEvent -> IO ()
- data LogEvent = LogEvent {}
- data LogEventType
- newtype ServerTime = ServerTime {}
Documentation
If there is a Logger
in the ConnectionData
struct, it will
be sporadically called with values of type LogEvent
.
data LogEventType Source #
A LogEventType
describes the particular event that happened
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 |
Instances
Eq LogEventType Source # | |
Defined in Network.Mattermost.Types.Base (==) :: LogEventType -> LogEventType -> Bool # (/=) :: LogEventType -> LogEventType -> Bool # | |
Show LogEventType Source # | |
Defined in Network.Mattermost.Types.Base showsPrec :: Int -> LogEventType -> ShowS # show :: LogEventType -> String # showList :: [LogEventType] -> ShowS # |
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.
Instances
Eq ServerTime Source # | |
Defined in Network.Mattermost.Types.Base (==) :: ServerTime -> ServerTime -> Bool # (/=) :: ServerTime -> ServerTime -> Bool # | |
Ord ServerTime Source # | |
Defined in Network.Mattermost.Types.Base compare :: ServerTime -> ServerTime -> Ordering # (<) :: ServerTime -> ServerTime -> Bool # (<=) :: ServerTime -> ServerTime -> Bool # (>) :: ServerTime -> ServerTime -> Bool # (>=) :: ServerTime -> ServerTime -> Bool # max :: ServerTime -> ServerTime -> ServerTime # min :: ServerTime -> ServerTime -> ServerTime # | |
Read ServerTime Source # | |
Defined in Network.Mattermost.Types.Base readsPrec :: Int -> ReadS ServerTime # readList :: ReadS [ServerTime] # readPrec :: ReadPrec ServerTime # readListPrec :: ReadPrec [ServerTime] # | |
Show ServerTime Source # | |
Defined in Network.Mattermost.Types.Base showsPrec :: Int -> ServerTime -> ShowS # show :: ServerTime -> String # showList :: [ServerTime] -> ShowS # |