Relay.hs 412 B

1234567891011121314
  1. {-# LANGUAGE TemplateHaskell #-}
  2. module Network.FCMTP.Relay where
  3. import Data.FCMTP.Host
  4. import qualified Control.Lens as L
  5. data Relay = Relay {
  6. _relayHost :: Host -- ^ Relay through this hosts
  7. , _relayRules :: String -- ^ When the destinatary account fits this regexp
  8. , _relayAuth :: Maybe (String, String) -- ^ Authenticate with this (account_name, password)
  9. } deriving (Show)
  10. L.makeLenses ''Relay