fscapture

package
v0.0.0-...-ffabf5f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capturable

type Capturable interface {
	Capture() error
	RegisterFileCaptureHook(string, FileCaptureHook) Capturable
	FileCaptureEvents() <-chan FileCaptureEvent
	Path() string
	File() *os.File
	Close() error
}

type FileCaptureEvent

type FileCaptureEvent struct {
	Path     string
	Message  string
	Info     os.FileInfo
	Captured bool
}

type FileCaptureHook

type FileCaptureHook func(path string, info os.FileInfo) bool

TODO expand the return value to signify whether to

do nothing
ignore only this file
ignore all files in the same directory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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