| Copyright | (c) 2014 Jens Thomas |
|---|---|
| License | BSD-style |
| Maintainer | jetho@gmx.de |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Syncthing.Types
Contents
Description
Type synonyms and data types.
- type Server = Text
- type Device = Text
- type FolderName = Text
- type Path = Text
- type Host = Text
- type Port = Int
- type Addr = (Host, Maybe Port)
- data CacheEntry = CacheEntry {}
- data Config = Config {}
- data AddressType
- data FolderConfig = FolderConfig {}
- data DeviceConfig = DeviceConfig {}
- data VersioningConfig = VersioningConfig {}
- data GuiConfig = GuiConfig {
- getEnabled :: Bool
- getApiKey :: Maybe Text
- getGuiAddress :: Addr
- getUser :: Text
- getPassword :: Text
- getUseTLS :: Bool
- data OptionsConfig = OptionsConfig {
- getListenAddress :: [Addr]
- getGlobalAnnServers :: [Text]
- getGlobalAnnEnabled :: Bool
- getLocalAnnEnabled :: Bool
- getLocalAnnPort :: Int
- getLocalAnnMCAddr :: Text
- getMaxSendKbps :: Int
- getMaxRecvKbps :: Int
- getReconnectIntervalS :: Int
- getStartBrowser :: Bool
- getUPnPEnabled :: Bool
- getUPnPLease :: Int
- getUPnPRenewal :: Int
- getURAccepted :: Int
- getURUniqueID :: Text
- getRestartOnWakeup :: Bool
- getAutoUpgradeIntervalH :: Int
- getKeepTemporariesH :: Int
- getCacheIgnoredFiles :: Bool
- getProgressUpdateIntervalS :: Int
- getSymlinksEnabled :: Bool
- data Connection = Connection {}
- data DirTree
- data Error = Error {}
- data Ignore = Ignore {
- getIgnores :: Maybe [Text]
- getPatterns :: Maybe [Text]
- data Model = Model {
- getGlobalBytes :: Integer
- getGlobalDeleted :: Integer
- getGlobalFiles :: Integer
- getInSyncBytes :: Integer
- getInSyncFiles :: Integer
- getLocalBytes :: Integer
- getLocalDeleted :: Integer
- getLocalFiles :: Integer
- getNeedBytes :: Integer
- getNeedFiles :: Integer
- getState :: Maybe ModelState
- getStateChanged :: Maybe UTCTime
- getInvalid :: Maybe Text
- getModelVersion :: Int
- data ModelState
- data Need = Need {}
- data Progress = Progress {
- getName :: Text
- getFlags :: Int
- getModified :: Integer
- getProgressVersion :: Int
- getLocalVersion :: Int
- getNumBlocks :: Int
- getSize :: Integer
- data System = System {
- getAlloc :: Integer
- getCpuPercent :: Double
- getExtAnnounceOK :: Maybe (Map Server Bool)
- getGoRoutines :: Int
- getMyId :: Text
- getSys :: Integer
- data SystemMsg
- data Upgrade = Upgrade {}
- data UsageReport = UsageReport {}
- data Version = Version {
- getArch :: Text
- getLongVersion :: Text
- getOs :: Text
- getVersion :: Text
Type Synonyms
type FolderName = Text Source
Data Types
The current configuration data structure.
Constructors
| Config | |
Fields | |
data FolderConfig Source
The folder specific configuration.
Constructors
| FolderConfig | |
Fields
| |
data DeviceConfig Source
Device specific configuration information.
Constructors
| DeviceConfig | |
Fields
| |
data VersioningConfig Source
Information about versioning.
Gui settings.
Constructors
| GuiConfig | |
Fields
| |
data OptionsConfig Source
Various config settings.
Constructors
| OptionsConfig | |
Fields
| |
data Connection Source
Connection information and some associated metadata.
Constructors
| Connection | |
Fields
| |
Instances
A directory tree contains files or subdirectories.
Constructors
| Dir | |
Fields | |
| File | |
Fields
| |
An error message and its timestamp.
Contains the ignores list and a list of all compiled ignore patterns.
Constructors
| Ignore | |
Fields
| |
Information about the current status of a folder.
Constructors
| Model | |
Fields
| |
Contains lists of files which are needed by a device for becoming in sync.
A file that is currently downloading.
Constructors
| Progress | |
Fields
| |
Information about the system status and resource usage.
System messages.
Constructors
| Restarting | |
| ShuttingDown | |
| ResettingFolders | |
| OtherSystemMsg Text |
Information about the current software version and upgrade possibilities.
data UsageReport Source
Information about the data sent in the anonymous usage report.
Constructors
| UsageReport | |
Fields
| |
Instances