| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Server.MsgStore.Journal
Documentation
data JournalMsgStore s Source #
Instances
data QStore (s :: QSType) where Source #
Instances
data JournalQueue (s :: QSType) Source #
Instances
data JournalMsgQueue (s :: QSType) Source #
data JournalStoreConfig s Source #
Constructors
| JournalStoreConfig | |
Fields
| |
closeMsgQueue :: JournalMsgStore s -> JournalQueue s -> IO () Source #
closeMsgQueueHandles :: JournalMsgStore s -> JournalMsgQueue s -> IO () Source #
data MsgQueueState Source #
Constructors
| MsgQueueState | |
Fields
| |
Instances
| Show MsgQueueState Source # | |
Defined in Simplex.Messaging.Server.MsgStore.Journal Methods showsPrec :: Int -> MsgQueueState -> ShowS show :: MsgQueueState -> String showList :: [MsgQueueState] -> ShowS | |
| StrEncoding MsgQueueState Source # | |
Defined in Simplex.Messaging.Server.MsgStore.Journal Methods strEncode :: MsgQueueState -> ByteString Source # strDecode :: ByteString -> Either String MsgQueueState Source # strP :: Parser MsgQueueState Source # | |
data JournalState t Source #
Constructors
| JournalState | |
Fields
| |
Instances
| Show (JournalState t) Source # | |
Defined in Simplex.Messaging.Server.MsgStore.Journal Methods showsPrec :: Int -> JournalState t -> ShowS show :: JournalState t -> String showList :: [JournalState t] -> ShowS | |
| JournalTypeI t => StrEncoding (JournalState t) Source # | |
Defined in Simplex.Messaging.Server.MsgStore.Journal Methods strEncode :: JournalState t -> ByteString Source # strDecode :: ByteString -> Either String (JournalState t) Source # strP :: Parser (JournalState t) Source # | |
data SJournalType (t :: JournalType) where Source #
Constructors
| SJTRead :: SJournalType 'JTRead | |
| SJTWrite :: SJournalType 'JTWrite |
Instances
| Show (SJournalType t) Source # | |
Defined in Simplex.Messaging.Server.MsgStore.Journal Methods showsPrec :: Int -> SJournalType t -> ShowS show :: SJournalType t -> String showList :: [SJournalType t] -> ShowS | |
msgQueueDirectory :: JournalMsgStore s -> RecipientId -> FilePath Source #
msgQueueStatePath :: FilePath -> RecipientId -> FilePath Source #
readQueueState :: JournalMsgStore s -> FilePath -> IO (Maybe MsgQueueState, Bool) Source #
newMsgQueueState :: ByteString -> MsgQueueState Source #
getJournalQueueMessages :: JournalMsgStore s -> JournalQueue s -> IO [Message] Source #
newJournalId :: TVar StdGen -> IO ByteString Source #
appendState :: Handle -> MsgQueueState -> IO () Source #
queueLogFileName :: String Source #
journalFilePath :: FilePath -> ByteString -> FilePath Source #
logFileExt :: String Source #