syncthing

package
v0.0.0-...-1614809 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultRemoteDeviceID remote syncthing ID
	DefaultRemoteDeviceID = "ATOPHFJ-VPVLDFY-QVZDCF2-OQQ7IOW-OG4DIXF-OA7RWU3-ZYA4S22-SI4XVAU"

	// DefaultFileWatcherDelay how much to wait before starting a sync after a file change
	DefaultFileWatcherDelay = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncthing

type Syncthing struct {
	Home             string
	Name             string
	Namespace        string
	LocalPath        string
	RemoteAddress    string
	RemoteDeviceID   string
	APIKey           string
	FileWatcherDelay int
	GUIAddress       string
	ListenAddress    string
	// contains filtered or unexported fields
}

Syncthing represents the local syncthing process.

func NewSyncthing

func NewSyncthing(name, namespace, localPath string) (*Syncthing, error)

NewSyncthing constructs a new Syncthing.

func (*Syncthing) Run

func (s *Syncthing) Run() error

Run starts up a local syncthing process to serve files from.

func (*Syncthing) Stop

func (s *Syncthing) Stop() error

Stop halts the background process and cleans up.

Jump to

Keyboard shortcuts

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