Safe Haskell | None |
---|---|
Language | Haskell98 |
- type HiddenServiceName = String
- type NodeName = String
- isBridge :: Property NoInfo
- isRelay :: Property NoInfo
- named :: NodeName -> Property HasInfo
- torPrivKey :: Context -> Property HasInfo
- server :: Property NoInfo
- configured :: [(String, String)] -> Property NoInfo
- data BwLimit
- bandwidthRate :: BwLimit -> Property NoInfo
- bandwidthRate' :: String -> Integer -> Property NoInfo
- hiddenServiceAvailable :: HiddenServiceName -> Int -> Property NoInfo
- hiddenService :: HiddenServiceName -> Int -> Property NoInfo
- hiddenServiceData :: IsContext c => HiddenServiceName -> c -> Property HasInfo
- restarted :: Property NoInfo
- mainConfig :: FilePath
- varLib :: FilePath
- varRun :: FilePath
- user :: User
- type NickName = String
- saneNickname :: String -> NickName
Documentation
type HiddenServiceName = String Source
named :: NodeName -> Property HasInfo Source
Makes the tor node be named, with a known private key.
This can be moved to a different IP without needing to wait to accumulate trust.
torPrivKey :: Context -> Property HasInfo Source
server :: Property NoInfo Source
A tor server (bridge, relay, or exit) Don't use if you just want to run tor for personal use.
configured :: [(String, String)] -> Property NoInfo Source
Specifies configuration settings. Any lines in the config file that set other values for the specified settings will be removed, while other settings are left as-is. Tor is restarted when configuration is changed.
bandwidthRate :: BwLimit -> Property NoInfo Source
Limit incoming and outgoing traffic to the specified amount each.
For example, PerSecond "30 kibibytes" is the minimum limit for a useful relay.
hiddenService :: HiddenServiceName -> Int -> Property NoInfo Source
hiddenServiceData :: IsContext c => HiddenServiceName -> c -> Property HasInfo Source
saneNickname :: String -> NickName Source
Convert String to a valid tor NickName.