MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / processEvent

Method processEvent

pkg/unpackerr/folder.go:496–503  ·  view source on GitHub ↗

processEvent is here to process the event in the `*Unpackerr` scope before sending it back to the `*Folders` scope.

(event *eventData, now time.Time)

Source from the content-addressed store, hash-verified

494
495// processEvent is here to process the event in the `*Unpackerr` scope before sending it back to the `*Folders` scope.
496func (u *Unpackerr) processEvent(event *eventData, now time.Time) {
497 // Do not watch our own log file.
498 if event.file == u.Config.LogFile || event.file == u.Config.Webserver.LogFile {
499 return
500 }
501
502 u.folders.processEvent(event, now)
503}
504
505// processEvent processes the event that was received.
506func (f *Folders) processEvent(event *eventData, now time.Time) {

Callers 1

RunMethod · 0.95

Calls 1

processEventMethod · 0.45

Tested by

no test coverage detected