filesystem

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup() error

Setup creates the daemon directory and writes the default files to it.

Types

type DirectoryWatcher

type DirectoryWatcher struct {
	Events chan string
	// contains filtered or unexported fields
}

func NewDirectoryWatcher

func NewDirectoryWatcher() DirectoryWatcher

func NewDirectoryWatcherWithFiles

func NewDirectoryWatcherWithFiles(directory string) (DirectoryWatcher, error)

func (*DirectoryWatcher) SetDirectory

func (f *DirectoryWatcher) SetDirectory(directory string) error

func (*DirectoryWatcher) Start

func (f *DirectoryWatcher) Start() error

type FileWatcher

type FileWatcher struct {
	Events chan bool
	// contains filtered or unexported fields
}

func NewFileWatcher

func NewFileWatcher() FileWatcher

func (*FileWatcher) AddFile

func (f *FileWatcher) AddFile(file string) error

func (*FileWatcher) Start

func (f *FileWatcher) Start() error

Directories

Path Synopsis
locations

Jump to

Keyboard shortcuts

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