sync

package
v0.0.0-...-61d21ef Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	QueueCopy(src, dst string)
	QueueConvert(src, dst string)
	ConvertExt(name string) string
}

type Options

type Options struct {
	FileFormats []string // to transcode
	CopyFormats []string // to copy

	ErrorLog func(err error)
}

func (Options) IsExt

func (o Options) IsExt(ext string) bool

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func New

func New(src, dst string, opts Options, c Converter) (*Syncer, error)

func (*Syncer) Run

func (s *Syncer) Run(freq time.Duration) error

Run starts the watcher and the main loop. It blocks forever. An error is returned prematurely, if there is one.

Jump to

Keyboard shortcuts

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