package
0.10.0
Repository: https://github.com/backube/volsync.git
Documentation: pkg.go.dev

# Functions

CreateSyncthingTestServer Returns a test server that mimics the Syncthing API by exposing the endpoints for config, system status, and system connections.
NewConnection accepts an APIConfig object and a logger and creates a SyncthingConnection object in return.

# Constants

Defines endpoints for the Syncthing API.
Defines endpoints for the Syncthing API.
Defines endpoints for the Syncthing API.

# Structs

APIConfig Describes the necessary elements needed to configure a client with the Syncthing API, included the credentials, URL, TLS Certs.
ConnectionStats Details statistics about this Syncthing connection.
DialStatus Provides us with information as to whether or not we are able to dial a given device, when the last time we dialed was, and what the error is, if any.
Syncthing Defines a Syncthing API object which contains a subset of the information exposed through Syncthing's API.
SystemConnections Describes the devices which are connected to the Syncthing device, in addition to statistics about the total traffic to and from this node.
SystemStatus Details information about the running Syncthing system, including the device ID, CPU usage, allocated memory, number of goroutines, when it started, and so on and so forth.
TotalStats Describes the total traffic to/from a given Syncthing node.

# Interfaces

No description provided by the author