mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
da20785685
Former-commit-id: 23f542f43b4b493e38f5aa4c29788ed93a63b43b [formerly 71b23a6a28eb045fcfeab6329de69f1e5455486b] Former-commit-id: d12b3a6decc876f010a71f98e11df7387c1aaf2a
32 lines
955 B
Go
32 lines
955 B
Go
// Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// +build !darwin,!linux,!freebsd,!dragonfly,!netbsd,!openbsd,!windows
|
|
// +build !kqueue,!solaris
|
|
|
|
package notify
|
|
|
|
// Platform independent event values.
|
|
const (
|
|
osSpecificCreate Event = 1 << iota
|
|
osSpecificRemove
|
|
osSpecificWrite
|
|
osSpecificRename
|
|
// internal
|
|
// recursive is used to distinguish recursive eventsets from non-recursive ones
|
|
recursive
|
|
// omit is used for dispatching internal events; only those events are sent
|
|
// for which both the event and the watchpoint has omit in theirs event sets.
|
|
omit
|
|
)
|
|
|
|
var osestr = map[Event]string{}
|
|
|
|
type event struct{}
|
|
|
|
func (e *event) Event() (_ Event) { return }
|
|
func (e *event) Path() (_ string) { return }
|
|
func (e *event) Sys() (_ interface{}) { return }
|
|
func (e *event) isDir() (_ bool, _ error) { return }
|