Documentation ¶
Rendered for darwin/amd64
Index ¶
- func FlushEventStream(stream FSEventStream, sync bool)
- func ReleaseEventStream(stream FSEventStream)
- func RunLoopInCurrentThread(stop <-chan struct{}) error
- func SetEventCallback(userInfo uintptr, callback FSCallback)
- func StartEventStreamInRunloop(stream FSEventStream, runloop CFRunLoop) bool
- func StopEventStreamInRunLoop(stream FSEventStream, runloop CFRunLoop)
- type CFArray
- type CFRunLoop
- type CFString
- type CFType
- type FSCallback
- type FSEvent
- type FSEventID
- type FSEventStream
- type FSEventStreamContext
- type FSEventStreamCreateFlag
- type FSEventStreamFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushEventStream ¶
func FlushEventStream(stream FSEventStream, sync bool)
func ReleaseEventStream ¶
func ReleaseEventStream(stream FSEventStream)
func RunLoopInCurrentThread ¶
func RunLoopInCurrentThread(stop <-chan struct{}) error
func SetEventCallback ¶
func SetEventCallback(userInfo uintptr, callback FSCallback)
func StartEventStreamInRunloop ¶
func StartEventStreamInRunloop(stream FSEventStream, runloop CFRunLoop) bool
func StopEventStreamInRunLoop ¶
func StopEventStreamInRunLoop(stream FSEventStream, runloop CFRunLoop)
Types ¶
type CFRunLoop ¶
type CFRunLoop C.CFRunLoopRef
func CurrentRunLoop ¶
func CurrentRunLoop() CFRunLoop
type FSCallback ¶
type FSCallback func(*FSEvent)
type FSEvent ¶
type FSEvent struct { Stream FSEventStream UserInfo uintptr Path string Flags FSEventStreamFlag Event FSEventID }
type FSEventID ¶
type FSEventID C.FSEventStreamEventId
func LatestEventID ¶
func LatestEventID() FSEventID
type FSEventStream ¶
type FSEventStream C.FSEventStreamRef
func NewEventStream ¶
func NewEventStream(paths []string, userInfo uintptr, since FSEventID, latency time.Duration, flags FSEventStreamCreateFlag) (FSEventStream, error)
type FSEventStreamContext ¶
type FSEventStreamContext C.FSEventStreamContext
type FSEventStreamCreateFlag ¶
const ( FS_STREAM_CREATE_FLAG_USECFTYPES FSEventStreamCreateFlag = 1 << iota FS_STREAM_CREATE_FLAG_NODEFER FSEventStreamCreateFlag = 1 << iota FS_STREAM_CREATE_FLAG_WATCHROOT FSEventStreamCreateFlag = 1 << iota FS_STREAM_CREATE_FLAG_IGNORESELF FSEventStreamCreateFlag = 1 << iota FS_STREAM_CREATE_FLAG_FILEEVENTS FSEventStreamCreateFlag = 1 << iota FS_STREAM_CREATE_FLAG_NONE FSEventStreamCreateFlag = 0 )
type FSEventStreamFlag ¶
const ( FS_STREAM_FLAG_MUSTSCANSUBDIRS FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_USERDROPPED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_KERNELDROPPED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_EVENTIDSWRAPPED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_HISTORYDONE FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ROOTCHANGED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_MOUNT FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_UNMOUNT FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_CREATED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_REMOVED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_INODEMETAMOD FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_RENAMED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_MODIFIED FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_FINDERINFOMOD FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_CHANGEOWNER FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_XATTRMOD FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_ISFILE FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_ISDIR FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_ITEM_ISSYMLINK FSEventStreamFlag = 1 << iota FS_STREAM_FLAG_MIN = FS_STREAM_FLAG_MUSTSCANSUBDIRS FS_STREAM_FLAG_MAX = FS_STREAM_FLAG_ITEM_ISSYMLINK FS_STREAM_FLAG_NONE FSEventStreamFlag = 0 )
func (FSEventStreamFlag) String ¶
func (f FSEventStreamFlag) String() string
Click to show internal directories.
Click to hide internal directories.