hwormhole-0.1.0.0: magic-wormhole client
Transit.Internal.App
Description
data Env Source #
Magic Wormhole transit app environment
Constructors
Fields
Application specific ID
random 5-byte bytestring
configuration like relay and transit url
pass code word list (list of pair of words)
prepareAppEnv :: Text -> FilePath -> Options -> IO Env Source #
Create an Env, given the AppID, wordlist file and Options
Env
Options
app :: App () Source #
A file transfer application that takes an Env and depending on the config options, either sends or receives a file, directory or a text message from the peer.
runApp :: App a -> Env -> IO (Either Error a) Source #
run the App Monad Transformer