core

package
v0.0.0-...-8aaaf28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsWatcher

type FsWatcher struct {
	Subscribers map[int][]Runner
	// contains filtered or unexported fields
}

FsWatcher watches for filesystem changes and notify it's subscribers

func NewFsWatcher

func NewFsWatcher() *FsWatcher

NewFsWatcher creates a new FsWatcher instance

func (*FsWatcher) Init

func (f *FsWatcher) Init(path string)

init initializes new fsNotify Watcher in path.

func (*FsWatcher) Subscribe

func (f *FsWatcher) Subscribe(runner Runner)

Subscribe subscribes an event listener to file watcher.

type Runner

type Runner interface {
	Run(filename string) error
	HandleExtension(extension string) bool
	HandledEvents() []int
}

Jump to

Keyboard shortcuts

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