sync

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketSynchronizer

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

func New

func New(
	folderWatcher watcher.FolderWatcher,
	textileClient tc.Client,
	notifier GrpcNotifier,
) *BucketSynchronizer

Creates a new BucketSynchronizer instancelistenerEventHandler

func (*BucketSynchronizer) Start

func (bs *BucketSynchronizer) Start(ctx context.Context) error

Starts the folder watcher and the textile watcher.

func (*BucketSynchronizer) Stop

func (bs *BucketSynchronizer) Stop()

type GrpcNotifier added in v0.0.3

type GrpcNotifier interface {
	SendFileEvent(event events.FileEvent)
	SendTextileEvent(event events.TextileEvent)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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