| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Syncthing.Internal.Types
- data CacheEntry = CacheEntry {}
- data Config = Config {}
- data FolderConfig = FolderConfig {
- getId :: FolderName
- getPath :: Path
- getFolderDevices :: [Device]
- getReadOnly :: Bool
- getRescanIntervalS :: Int
- getIgnorePerms :: Bool
- getVersioning :: VersioningConfig
- getLenientMtimes :: Bool
- getCopiers :: Int
- getPullers :: Int
- getFolderInvalid :: Text
- data DeviceConfig = DeviceConfig {
- getDevice :: Device
- getDeviceName :: Text
- getAddresses :: [AddressType]
- getCompression :: Bool
- getCertName :: Text
- getIntroducer :: Bool
- data VersioningConfig = VersioningConfig {}
- 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 GuiConfig = GuiConfig {
- getEnabled :: Bool
- getApiKey :: Maybe Text
- getGuiAddress :: Addr
- getUser :: Text
- getPassword :: Text
- getUseTLS :: Bool
- data AddressType
- type Device = Text
- type FolderName = Text
- type Path = Text
- type Host = Text
- type Port = Int
- type Addr = (Host, Maybe Port)
- defaultFolder :: FolderName
- newtype Completion = Completion {
- getCompletion :: Int
- data Connection = Connection {
- getAt :: Maybe UTCTime
- getInBytesTotal :: Integer
- getOutBytesTotal :: Integer
- getAddress :: Addr
- getClientVersion :: Text
- parseIdResult :: FromJSON a => Bool -> Object -> Parser (Either DeviceError a)
- data Error = Error {}
- newtype Errors = Errors {}
- 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 {
- getProgress :: [Progress]
- getQueued :: [Text]
- getRest :: [Text]
- data Progress = Progress {
- getName :: Text
- getFlags :: Int
- getModified :: Integer
- getProgressVersion :: Int
- getLocalVersion :: Int
- getNumBlocks :: Int
- getSize :: Integer
- newtype Ping = Ping {
- getPing :: Text
- newtype Sync = Sync {}
- data System = System {
- getAlloc :: Integer
- getCpuPercent :: Double
- getExtAnnounceOK :: Maybe Bool
- getGoRoutines :: Int
- getMyId :: Text
- getSys :: Integer
- data SystemMsg
- = Restarting
- | ShuttingDown
- | ResettingFolders
- | OtherSystemMsg Text
- data Upgrade = Upgrade {
- getLatest :: Text
- getNewer :: Bool
- getRunning :: Text
- data Version = Version {
- getArch :: Text
- getLongVersion :: Text
- getOs :: Text
- getVersion :: Text
Documentation
data CacheEntry
Represents an entry in the discovery cache.
Instances
| Eq CacheEntry | |
| Show CacheEntry | |
| FromJSON CacheEntry |
data FolderConfig
The folder specific configuration.
Constructors
| FolderConfig | |
Fields
| |
Instances
| Eq FolderConfig | |
| Show FolderConfig | |
| ToJSON FolderConfig | |
| FromJSON FolderConfig |
data DeviceConfig
Device specific configuration information.
Constructors
| DeviceConfig | |
Fields
| |
Instances
| Eq DeviceConfig | |
| Show DeviceConfig | |
| ToJSON DeviceConfig | |
| FromJSON DeviceConfig |
data VersioningConfig
Information about versioning.
Constructors
| VersioningConfig | |
Instances
| Eq VersioningConfig | |
| Show VersioningConfig | |
| ToJSON VersioningConfig | |
| FromJSON VersioningConfig |
data OptionsConfig
Various config settings.
Constructors
| OptionsConfig | |
Fields
| |
Instances
| Eq OptionsConfig | |
| Show OptionsConfig | |
| ToJSON OptionsConfig | |
| FromJSON OptionsConfig |
data GuiConfig
Gui settings.
Constructors
| GuiConfig | |
Fields
| |
type Device = Text
type FolderName = Text
type Path = Text
type Host = Text
The default folder name.
newtype Completion
Constructors
| Completion | |
Fields
| |
Instances
| Eq Completion | |
| Show Completion | |
| FromJSON Completion |
data Connection
Connection information and some associated metadata.
Constructors
| Connection | |
Fields
| |
Instances
| Eq Connection | |
| Show Connection | |
| FromJSON Connection |
parseIdResult :: FromJSON a => Bool -> Object -> Parser (Either DeviceError a)
data Error
An error message and its timestamp.
newtype Errors
data Ignore
Contains the ignores list and a list of all compiled ignore patterns.
Constructors
| Ignore | |
Fields
| |
data Model
Information about the current status of a folder.
Constructors
| Model | |
Fields
| |
data Need
Contains lists of files which are needed by a device for becoming in sync.
Constructors
| Need | |
Fields
| |
data Progress
A file that is currently downloading.
Constructors
| Progress | |
Fields
| |
data System
Information about the system status and resource usage.
Constructors
| System | |
Fields
| |
data SystemMsg
System messages.
Constructors
| Restarting | |
| ShuttingDown | |
| ResettingFolders | |
| OtherSystemMsg Text |