notify

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name string
	Time int64
}

Event represents a single file system notification.

type Notify

type Notify struct {
	Events chan Event
	Errors chan error
	// contains filtered or unexported fields
}

Notify delivers events to a channel when files are virtually updated. "create+rename" is regarded as "update".

func New

func New(patterns []string, maxWatchDirs int) (*Notify, error)

New creates a Notify

func (*Notify) Close

func (n *Notify) Close()

Close disposes internal resources.

func (*Notify) PendingPeriod

func (n *Notify) PendingPeriod(p int64)

PendingPeriod sets new pendingPeriod(ms).

func (*Notify) Requeue added in v0.0.9

func (n *Notify) Requeue(event Event)

Requeue requeue an event.

type Op

type Op = fsnotify.Op

Op describes a set of file operations.

Jump to

Keyboard shortcuts

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