simplexmq-6.5.0.16: SimpleXMQ message broker
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simplex.FileTransfer.Server.Env

Synopsis

Documentation

data XFTPServerConfig s Source #

Constructors

XFTPServerConfig 

Fields

data XFTPStoreConfig s where Source #

Constructors

XSCMemory :: Maybe FilePath -> XFTPStoreConfig STMFileStore 

data XFTPEnv s Source #

Constructors

XFTPEnv 

Fields

type family XFTPStoreType (fs :: FSType) where ... Source #

data AFStoreType Source #

Constructors

forall fs. AFSType (SFSType fs) 

readFileStoreType :: Ini -> Either String AFStoreType Source #

runWithStoreConfig :: AFStoreType -> Ini -> FilePath -> MigrationConfirmation -> (forall s. FileStoreClass s => XFTPStoreConfig s -> IO ()) -> IO () Source #

Dispatch store config from AFStoreType singleton and run the callback. CPP guards for Postgres are handled here so Main.hs stays CPP-free.

checkFileStoreMode :: Ini -> AFStoreType -> FilePath -> IO () Source #

Validate startup config when store_files=database.

importToDatabase :: FilePath -> Ini -> MigrationConfirmation -> IO () Source #

Import StoreLog to PostgreSQL database.

exportFromDatabase :: FilePath -> Ini -> MigrationConfirmation -> IO () Source #

Export PostgreSQL database to StoreLog.