watcher

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFace

type IFace interface {
	Init() error
	Watch()
	Register(func(bts []byte))
	ReadFile() ([]byte, error)
	Updated() error
}

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(path string) (w *Watcher)

func (*Watcher) Init

func (w *Watcher) Init() error

func (*Watcher) ReadFile

func (w *Watcher) ReadFile() ([]byte, error)

func (*Watcher) Register

func (w *Watcher) Register(cb func(bts []byte))

func (*Watcher) Updated

func (w *Watcher) Updated() error

func (*Watcher) Watch

func (w *Watcher) Watch()

Jump to

Keyboard shortcuts

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