fw

package
v0.0.0-...-b38bbfa Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileEvent

type FileEvent struct {
	Name string // Relative path to the file or directory.
	Op   Op     // File operation that triggered the event.
}

Types Event and Op and the Op-constants were copied from the fsnotify.go -> we wrap them here FileEvent represents a single file system notification.

type FileWatcher

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

func New

func New(config *config.Config, eventSink chan *FileEvent) *FileWatcher

func (*FileWatcher) Start

func (fw *FileWatcher) Start()

type Op

type Op uint32

Op describes a set of file operations.

const (
	Create Op = 1 << iota
	Write
	Remove
	Rename
	Chmod
)

These are the generalized file operations that can trigger a notification.

Jump to

Keyboard shortcuts

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