reloader

package
v0.0.0-...-905c385 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilOnError = errorf("NIL onError")
	ErrStopped    = errorf("STOPPED")
)

errors

Functions

This section is empty.

Types

type Reloader

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

Reloader .

func New

func New(onError func(error)) *Reloader

New .

func (*Reloader) Add

func (r *Reloader) Add(
	fileName string,
	dirs ...string) error

Add .

func (*Reloader) SetOnEvent

func (r *Reloader) SetOnEvent(onEvent func(fsnotify.Event))

SetOnEvent .

func (*Reloader) Stop

func (r *Reloader) Stop()

Stop .

Jump to

Keyboard shortcuts

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