event

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 6 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 {
	Type     Type
	FromPath connector.Path
	ToPath   connector.Path
}

func (Event) String

func (e Event) String() string

type EventHandler

type EventHandler interface {
	StackLength() int
	Append(event fsnotify.Event, sum string)
	Pop() fsnotify.Event

	Process() []Event
	// contains filtered or unexported methods
}

func NewEventHandler

func NewEventHandler() EventHandler

type EventManager

type EventManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*EventManager) Append

func (e *EventManager) Append(event fsnotify.Event, sum string)

func (*EventManager) Pop

func (e *EventManager) Pop() fsnotify.Event

func (*EventManager) Process

func (e *EventManager) Process() []Event

func (*EventManager) StackLength

func (e *EventManager) StackLength() int

type Type

type Type string
const (
	Remove Type = "remove"
	Write  Type = "write"
	Create Type = "create"
	Rename Type = "rename"
	Move   Type = "move"
)

func (Type) String

func (e Type) String() string

Jump to

Keyboard shortcuts

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