Documentation
¶
Index ¶
- Variables
- type Event
- type EventType
- type FileInfo
- type FileMap
- func (f *FileMap) AddFile(name string, info FileInfo) error
- func (f *FileMap) Delete(name string) error
- func (f *FileMap) DeletedFiles() []string
- func (f *FileMap) FilesCreated() int64
- func (f *FileMap) FilesDeleted() int64
- func (f *FileMap) Get(name string) (FileInfo, error)
- func (f *FileMap) Has(name string) bool
- func (f *FileMap) IsInitial(name string) bool
- func (f *FileMap) NewFiles() []string
- type FileType
- type Monitor
- type MonitorOpts
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownFile = errors.New("unknown file name") ErrFileTracked = errors.New("file already tracked") )
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
type FileMap ¶
type FileMap struct {
// contains filtered or unexported fields
}
func NewFileMap ¶
func NewFileMap() *FileMap
func (*FileMap) DeletedFiles ¶
func (*FileMap) FilesCreated ¶ added in v0.0.3
func (*FileMap) FilesDeleted ¶ added in v0.0.3
type Monitor ¶
type Monitor struct {
Events chan Event
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(opts *MonitorOpts) (*Monitor, error)
func (*Monitor) WatchDirRecursive ¶
type MonitorOpts ¶
func (*MonitorOpts) OK ¶
func (m *MonitorOpts) OK() error
Click to show internal directories.
Click to hide internal directories.