gdrive

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RClone       rcsnooper.Config
	PollInterval time.Duration
	Logger       *hllogger.Logger
	StateBackend Storage
	IndexBackend Storage
	KillSwitch   func()
	Output       chan<- []drivechange.File
}

type Controller

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

func New

func New(ctx context.Context, conf Config) (c *Controller, err error)

func (*Controller) WaitUntilFullStop

func (c *Controller) WaitUntilFullStop()

type Storage

type Storage interface {
	Clear() error
	Delete(string) error
	Get(string, interface{}) (bool, error)
	Has(string) bool
	Keys() []string
	NbKeys() int
	Set(string, interface{}) error
	Sync() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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