watcher

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher represents a watcher

func New

func New(file string, interval int, logger *log.Logger) *Watcher

New returns a watcher

func (Watcher) Start

func (w Watcher) Start(ctx context.Context) <-chan string

Start starts a watcher goroutine, and returns a channel that outputs a filepath

Jump to

Keyboard shortcuts

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