github.com/dgallion1/notify@v0.9.3-0.20201128171805-931189d936e0/event_trigger.go (about) 1 // Copyright (c) 2014-2015 The Notify Authors. All rights reserved. 2 // Use of this source code is governed by the MIT license that can be 3 // found in the LICENSE file. 4 5 // +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris illumos 6 7 package notify 8 9 type event struct { 10 p string 11 e Event 12 d bool 13 pe interface{} 14 } 15 16 func (e *event) Event() Event { return e.e } 17 18 func (e *event) Path() string { return e.p } 19 20 func (e *event) Sys() interface{} { return e.pe } 21 22 func (e *event) isDir() (bool, error) { return e.d, nil }