pttsbinet.org/x/ptt/fanotify Index | Files

package fanotify

import "sbinet.org/x/ptt/fanotify"

Index

Types

type Event

type Event struct {
	Kind EventKind
	Path string
}

func (Event) String

func (evt Event) String() string

type EventKind

type EventKind uint8
const (
	EventInvalid EventKind = 0
	EventCreate  EventKind = 1 << iota
	EventDelete
	EventMoved
	EventClose
	EventModify
)

func (EventKind) String

func (ek EventKind) String() string

type Watcher

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

func Watch

func Watch(name string, mask EventKind) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) Events

func (w *Watcher) Events() <-chan Event

Source Files

fanotify.go

Version
v0.0.0-20250303145539-212a2a8f82e2 (latest)
Published
Mar 3, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
5 days ago

Tools for package owners.