Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
Since OS events arrive synchronously and some events alone do not make sense, there was a need to set up a queue structure. Watchers written for OS periodically push events to the EventManager's stack and periodically handle these events within the Process method.
func (*EventManager) Pop ¶
func (e *EventManager) Pop() fsnotify.Event
func (*EventManager) Process ¶
func (e *EventManager) Process() []Event
This is where Event Manager processes the events in the main bus.Stack piece by piece. Determining the maximum number of events to be processed;
It is determined by how many events the operating system will send for a file transaction.
func (*EventManager) StackLength ¶
func (e *EventManager) StackLength() int
Click to show internal directories.
Click to hide internal directories.