Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpenFilesKeyPrefix = "openFiles#" ReverseOpenFilesKeyPrefix = "reverseOpenFiles#" )
Variables ¶
View Source
var (
ErrAddFileWatch = errors.New("error adding file to watch")
)
Functions ¶
This section is empty.
Types ¶
type BucketSynchronizer ¶
type BucketSynchronizer interface { WaitForReady() chan bool Start(ctx context.Context) error Stop() RegisterNotifier(notifier GrpcNotifier) AddFileWatch(addFileInfo domain.AddWatchFile) error GetOpenFilePath(bucketSlug string, bucketPath string) (string, bool) }
func New ¶
func New( folderWatcher watcher.FolderWatcher, textileClient textile.Client, store store.Store, notifier GrpcNotifier, ) BucketSynchronizer
Creates a new bucketSynchronizer instancelistenerEventHandler
type GrpcNotifier ¶ added in v0.0.3
type GrpcNotifier interface { SendFileEvent(event events.FileEvent) SendTextileEvent(event events.TextileEvent) }
type TextileNotifier ¶ added in v0.0.4
type TextileNotifier interface {
SendTextileEvent(event events.TextileEvent)
}
Click to show internal directories.
Click to hide internal directories.