syncthing-hs-0.1.1.0: Haskell bindings for the Syncthing REST API

Copyright(c) 2014 Jens Thomas
LicenseBSD-style
Maintainerjetho@gmx.de
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Network.Syncthing.Types

Contents

Description

Type synonyms and data types.

Synopsis

Type Synonyms

type Server = Text Source

Use the SERVER:PORT format for specifying servers.

type Port = Int Source

Data Types

data CacheEntry Source

Represents an entry in the discovery cache.

Constructors

CacheEntry 

data AddressType Source

An address can be dynamic or static.

Constructors

Dynamic 
Address Addr 

data Connection Source

Connection information and some associated metadata.

data DirTree Source

A directory tree contains files or subdirectories.

Constructors

Dir 
File 

Fields

getModTime :: Integer

file modification time

getFileSize :: Integer

file size

data Error Source

An error message and its timestamp.

Constructors

Error 

data Ignore Source

Contains the ignores list and a list of all compiled ignore patterns.

Constructors

Ignore 

data ModelState Source

The current state of activity of a folder.

Constructors

Idle 
Scanning 
Cleaning 
Syncing 

data Need Source

Contains lists of files which are needed by a device for becoming in sync.

Constructors

Need 

Fields

getProgress :: [Progress]
 
getQueued :: [Text]
 
getRest :: [Text]
 

Instances

data Progress Source

A file that is currently downloading.

data System Source

Information about the system status and resource usage.

data Upgrade Source

Information about the current software version and upgrade possibilities.

Constructors

Upgrade 

data Version Source

Current Syncthing version information.

Constructors

Version