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

Simplex.FileTransfer.Client.Main

Synopsis

Documentation

data SendOptions Source #

Constructors

SendOptions 

Fields

Instances

Instances details
Show SendOptions Source # 
Instance details

Defined in Simplex.FileTransfer.Client.Main

Methods

showsPrec :: Int -> SendOptions -> ShowS

show :: SendOptions -> String

showList :: [SendOptions] -> ShowS

newtype CLIError Source #

Constructors

CLIError String 

Instances

Instances details
Exception CLIError Source # 
Instance details

Defined in Simplex.FileTransfer.Client.Main

Methods

toException :: CLIError -> SomeException

fromException :: SomeException -> Maybe CLIError

displayException :: CLIError -> String

Show CLIError Source # 
Instance details

Defined in Simplex.FileTransfer.Client.Main

Methods

showsPrec :: Int -> CLIError -> ShowS

show :: CLIError -> String

showList :: [CLIError] -> ShowS

Eq CLIError Source # 
Instance details

Defined in Simplex.FileTransfer.Client.Main

Methods

(==) :: CLIError -> CLIError -> Bool

(/=) :: CLIError -> CLIError -> Bool

cliSendFileOpts :: SendOptions -> Bool -> (Int64 -> Int64 -> IO ()) -> ExceptT CLIError IO () Source #

encodeWebURI :: FileDescription 'FRecipient -> ByteString Source #

Encode file description as web-compatible URI fragment. Result is base64url(deflateRaw(YAML)), no leading #.

decodeWebURI :: ByteString -> Either String (ValidFileDescription 'FRecipient) Source #

Decode web URI fragment to validated file description. Input is base64url-encoded DEFLATE-compressed YAML, no leading #.

fileWebLink :: FileDescription 'FRecipient -> Maybe (ByteString, ByteString) Source #

Extract web link host and URI fragment from a file description. Returns (hostname, uriFragment) for https://hostname/#uriFragment.

singleChunkSize :: Int64 -> Maybe Word32 Source #

prepareChunkSizes :: Int64 -> [Word32] Source #

prepareChunkSpecs :: FilePath -> [Word32] -> [XFTPChunkSpec] Source #

getChunkDigest :: XFTPChunkSpec -> IO ByteString Source #