localfs

package
v0.0.0-...-aafedb1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

This package provides functions allowing to control the local filesystem. Also provides functions scoped on the sync dir. This functions are available as a service (made of type.Request)

Index

Constants

View Source
const (
	//This is the XATTR name used by gogdrive to mark the files with their fileID.
	XATTR_PREFIX  = "user.gogdrive-fileID"
	COMPAT_PREFIX = "user.jdrive-fileId" //Compat with JDrive
	EVENT_TIMEOUT = 300
)
View Source
const (
	//Max thread sleep in milliseconds
	MAX_SLEEP = 50
)

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, lg Logger, cnfp *Config, wtg *sync.WaitGroup, iorqch chan *Request, eventChannel chan<- *Event) error

This function initializes all the services that localfs gives. Listens for requests on iorqch and emits events via eventChannel

Types

This section is empty.

Jump to

Keyboard shortcuts

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