hwormhole-0.2.0.0: magic-wormhole client

Safe HaskellNone
LanguageHaskell2010

Transit.Internal.App

Description

 
Synopsis

Documentation

data Env Source #

Magic Wormhole transit app environment

Constructors

Env 

Fields

  • appID :: AppID

    Application specific ID

  • side :: Side

    random 5-byte bytestring

  • config :: Options

    configuration like relay and transit url

  • wordList :: [(Text, Text)]

    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

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