syncthing

package
v0.0.4-0...-7259d3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg uber.PluginConfig) (z uber.Plugin, err error)

Types

type FolderStatusId

type FolderStatusId int
const (
	StatusUnknown      FolderStatusId = iota //
	StatusIdle                               // idle
	StatusScanning                           // scanning
	StatusScanWaiting                        // scan-waiting
	StatusSyncing                            // syncing
	StatusSynPreparing                       // sync-preparing

)

type STConfig

type STConfig struct {
	Folders []STFolderConfig `json:"folders"`
}

type STEvent

type STEvent struct {
	Id   int       `json:"id"`
	Time time.Time `json:"time"`
	Type string    `json:"type"`
	Data json.RawMessage
}

type STEventFolderCompletion

type STEventFolderCompletion struct {
	Completion float32 `json:"completion"`
	FolderId   string  `json:"folder"`
}

type STEventFolderSummary

type STEventFolderSummary struct {
	Folder  string        `json:"folder"`
	Summary STFolderStats `json:"summary"`
}

type STEventStateChanged

type STEventStateChanged struct {
	Duration float32 `json:"duration"`
	FolderId string  `json:"folder"`
	From     string  `json:"from"`
	To       string  `json:"to"`
}

type STEvents

type STEvents []STEvent

type STFolderConfig

type STFolderConfig struct {
	Id     string `json:"id"`
	Label  string `json:"label"`
	Paused bool
}

type STFolderStats

type STFolderStats struct {
	State        string    `json:"state"`
	StateChanged time.Time `json:"stateChanged"`
	OOSBytes     int       `json:"needBytes"`
	OOSItems     int       `json:"needItems"`
	Sequence     int       `json:"sequence"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL