watchers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollingDuration = time.Millisecond * 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Events chan []fsnotify.Event // Events are returned on this channel

	// Events for the file system are returned on this
	// channel.
	Event chan Event

	// Errors that occurred reading a file are returned
	// on this channel.
	Error chan *errors.Error

	// Determines if the watcher is running.
	Running bool
	// contains filtered or unexported fields
}

Batch

func New

func New(themePath string) *Batch

func (*Batch) Close

func (b *Batch) Close()

Close

func (*Batch) SetTheme

func (b *Batch) SetTheme(themePath string)

UpdateTheme

func (*Batch) Start

func (b *Batch) Start()

Start

type Event

type Event struct {
	watcher.Event

	Extension string
	Mime      string
}

Event

Jump to

Keyboard shortcuts

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