Documentation
¶
Index ¶
- func ClearErrors() error
- func Events(event_types string, limit int, since int) (string, error)
- func GetLogTxt() (string, error)
- func IgnoreCertErrors()
- func Override(folderID string) error
- func PauseFolder(f string, p bool) error
- func PostError(msg string) error
- func Rescan(folderID string) error
- func ResetDB() error
- func Restart() error
- func Revert(folderID string) error
- func SetApiKeyTarget(a, t string) error
- func Shutdown() error
- type DbCompletion
- type DbStatus
- type FolderErrors
- type StConfig
- type SysConn
- type SysConnections
- type SysErrors
- type SysStatus
- type SysVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearErrors ¶
func ClearErrors() error
func IgnoreCertErrors ¶
func IgnoreCertErrors()
func PauseFolder ¶
func SetApiKeyTarget ¶
Types ¶
type DbCompletion ¶
type DbCompletion struct {
Completion float64 `json:"completion"`
NeedBytes uint64 `json:"needBytes"`
}
func GetCompletion ¶
func GetCompletion(qStr string) (DbCompletion, error)
type DbStatus ¶
type DbStatus struct {
GlobalBytes uint64 `json:"globalBytes"`
GlobalFiles uint64 `json:"globalFiles"`
LocalBytes uint64 `json:"localBytes"`
LocalFiles uint64 `json:"localFiles"`
NeedBytes uint64 `json:"needBytes"`
NeedTotalItems uint64 `json:"needTotalItems"`
State string `json:"state"`
Errors uint64 `json:"errors"`
ReceiveOnlyTotalItems uint64 `json:"receiveOnlyTotalItems"`
}
func GetFolderStatus ¶
type FolderErrors ¶
type FolderErrors struct {
Errors []struct {
Path string `json:"path"`
Error string `json:"error"`
} `json:"errors"`
}
func GetFolderErrors ¶
func GetFolderErrors(folderID string) (FolderErrors, error)
type StConfig ¶
type SysConn ¶
type SysConn map[string]struct { Connected bool `json:"connected"` InBytesTotal uint64 `json:"inBytesTotal"` OutBytesTotal uint64 `json:"outBytesTotal"` }
func GetConnection ¶
type SysConnections ¶
type SysConnections struct {
Connections SysConn
}
type SysErrors ¶
type SysErrors struct {
Errors []struct {
When string `json:"when"`
Message string `json:"message"`
} `json:"errors"`
}
func GetSysErrors ¶
type SysStatus ¶
type SysStatus struct {
MyID string `json:"myID"`
Uptime int64 `json:"uptime"`
Ram uint64 `json:"sys"`
}
func GetSysStatus ¶
type SysVersion ¶
type SysVersion struct {
Version string `json:"version"`
}
func GetSysVersion ¶
func GetSysVersion() (SysVersion, error)
Click to show internal directories.
Click to hide internal directories.