inotify

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inotify

type Inotify struct {
	Event chan InotifyEvent
	Error chan error
	// contains filtered or unexported fields
}

func NewINotify

func NewINotify() (*Inotify, error)

func (*Inotify) Add

func (i *Inotify) Add(name string) error

func (*Inotify) Close

func (i *Inotify) Close() error

func (*Inotify) List

func (i *Inotify) List() []string

func (*Inotify) Remove

func (i *Inotify) Remove(name string) error

type InotifyEvent

type InotifyEvent struct {
	Name      string
	Operation Operation
}

func (InotifyEvent) Has

func (e InotifyEvent) Has(o Operation) bool

type Operation

type Operation uint32
const (
	Create Operation = 1 << iota
	Write
	Remove
	Rename
	Chmod
)

func (Operation) Has

func (o Operation) Has(h Operation) bool

func (Operation) ToString

func (o Operation) ToString() string

Jump to

Keyboard shortcuts

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