Safe Haskell | None |
---|---|
Language | Haskell2010 |
Moto.File
Description
Synopsis
- registryConf :: RegistryConf
- withRegistry :: (MonadIO m, MonadMask m) => Df1 -> FilePath -> (Registry -> m a) -> m a
- store :: FilePath -> Store (Producer ByteString IO ())
- jsonStore :: (FromJSON x, ToJSON x) => FilePath -> Store x
Registry
registryConf :: RegistryConf Source #
Command-line configuration for a Registry
stored as a file in the
filesystem using withRegistry
.
Arguments
:: (MonadIO m, MonadMask m) | |
=> Df1 | |
-> FilePath | File where to store the registry logs. An exclusive lock will be set on the this file (see |
-> (Registry -> m a) | |
-> m a |
Obtain a Registry
backed by an append-only file storage, using moto
's
own file format.
Store
Arguments
:: FilePath | Path to a directory where the files are or will be stored. |
-> Store (Producer ByteString IO ()) |
A Store
that keeps data stored as files (one per MigId
) in a filesystem
directory.
For maximum memory consumption efficiency, the data is written and read in a
streaming fasion using a Producer
.