fsevents

package module
v0.0.0-...-cec54c6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: MIT Imports: 5 Imported by: 1

README

go-fsevents

Package fsevents monitors filesystem events

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSEvent

type FSEvent struct {
	Path             string
	EventType        FSEventType
	FileInfo         os.FileInfo
	PreviousFileInfo os.FileInfo
}

FSEvent ...

type FSEventType

type FSEventType int

FSEventType ...

const FSEventCreate FSEventType = 0

FSEventCreate ...

const FSEventDelete FSEventType = 1

FSEventDelete ...

const FSEventModify FSEventType = 2

FSEventModify ...

type Watcher

type Watcher struct {
	Path      string
	Interval  time.Duration
	EventChan chan FSEvent
	// contains filtered or unexported fields
}

Watcher ...

func NewWatcher

func NewWatcher(path string, interval time.Duration) (*Watcher, error)

NewWatcher ...

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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