camlistore.org: camlistore.org/pkg/misc/fakefsnotify Index | Files

package fakefsnotify

import "camlistore.org/pkg/misc/fakefsnotify"

Package fakefsnotify provides just enough of a mock of github.com/fsnotify/fsnotify in order to build github.com/gopherjs/gopherjs. Obviously the 'gopherjs serve' command (which normally relies on fsnotify) is not expected to work when gopherjs is built with fakefsnotify.

Index

Package Files

watcher.go

Constants

const (
    Create = iota
    Write  = iota
    Remove = iota
    Rename = iota
)

type FakeEvent Uses

type FakeEvent struct {
    Op   int
    Name string
}

type Watcher Uses

type Watcher struct {
    Events chan FakeEvent
    Errors chan error
}

func NewWatcher Uses

func NewWatcher() (*Watcher, error)

func (*Watcher) Add Uses

func (fw *Watcher) Add(packagePath string)

func (*Watcher) Close Uses

func (fw *Watcher) Close() error

Updated 2018-01-21. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).