github.com/DiversionCompany/notify@v0.9.9/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  //go:build (darwin && kqueue) || (darwin && !cgo) || dragonfly || freebsd || netbsd || openbsd || solaris || illumos
     6  // +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris illumos
     7  
     8  package notify
     9  
    10  type event struct {
    11  	p  string
    12  	e  Event
    13  	d  bool
    14  	pe interface{}
    15  }
    16  
    17  func (e *event) Event() Event { return e.e }
    18  
    19  func (e *event) Path() string { return e.p }
    20  
    21  func (e *event) Sys() interface{} { return e.pe }
    22  
    23  func (e *event) isDir() (bool, error) { return e.d, nil }