| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.FileTransfer.Server.Store
Documentation
Constructors
| FileStore | |
Fields
| |
Constructors
| FileRec | |
Fields
| |
data FileRecipient Source #
Constructors
| FileRecipient RecipientId RcvPublicAuthKey |
Instances
| Show FileRecipient Source # | |
Defined in Simplex.FileTransfer.Server.Store Methods showsPrec :: Int -> FileRecipient -> ShowS show :: FileRecipient -> String showList :: [FileRecipient] -> ShowS | |
| StrEncoding FileRecipient Source # | |
Defined in Simplex.FileTransfer.Server.Store Methods strEncode :: FileRecipient -> ByteString Source # strDecode :: ByteString -> Either String FileRecipient Source # strP :: Parser FileRecipient Source # | |
type RoundedFileTime = RoundedSystemTime 3600 Source #
newFileStore :: IO FileStore Source #
addFile :: FileStore -> SenderId -> FileInfo -> RoundedFileTime -> ServerEntityStatus -> STM (Either XFTPErrorType ()) Source #
setFilePath :: FileStore -> SenderId -> FilePath -> STM (Either XFTPErrorType ()) Source #
addRecipient :: FileStore -> SenderId -> FileRecipient -> STM (Either XFTPErrorType ()) Source #
deleteFile :: FileStore -> SenderId -> STM (Either XFTPErrorType ()) Source #
blockFile :: FileStore -> SenderId -> BlockingInfo -> Bool -> STM (Either XFTPErrorType ()) Source #
deleteRecipient :: FileStore -> RecipientId -> FileRec -> STM () Source #
expiredFilePath :: FileStore -> XFTPFileId -> Int64 -> STM (Maybe (Maybe FilePath)) Source #
getFile :: forall (p :: FileParty). FileStore -> SFileParty p -> XFTPFileId -> STM (Either XFTPErrorType (FileRec, APublicAuthKey)) Source #
ackFile :: FileStore -> RecipientId -> STM (Either XFTPErrorType ()) Source #
fileTimePrecision :: Int64 Source #