Documentation ¶
Index ¶
- Constants
- type Monitor
- type MonitorID
- type MonitorManager
- func (manager *MonitorManager) GetDBusInfo() dbus.DBusInfo
- func (manager *MonitorManager) Monitor(fileURI string, flags uint32) (string, dbus.ObjectPath, string, error)
- func (manager *MonitorManager) Unmonitor(id uint32)
- func (manager *MonitorManager) Unwatcher(id uint32)
- func (manager *MonitorManager) Watch(fileURI string) (string, dbus.ObjectPath, string, error)
- type TrashMonitor
- type Watcher
- type WatcherID
Constants ¶
View Source
const ( FsNotifyCreated uint32 = iota FsNotifyDeleted FsNotifyModified FsNotifyRename FsNotifyAttributeChanged )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { ID uint32 Changed func(string, string, uint32) // contains filtered or unexported fields }
func NewMonitor ¶
func (*Monitor) GetDBusInfo ¶
func (*Monitor) IsCancelled ¶
func (*Monitor) SetRateLimit ¶
type MonitorManager ¶
type MonitorManager struct { // monitor flags FileMonitorFlagsSendMoved uint32 FileMonitorFlagsWatchHardLinks uint32 FileMonitorFlagsNone uint32 FileMonitorFlagsWatchMounts uint32 // monitor events FileMonitorEventMoved uint32 FileMonitorEventChanged uint32 FileMonitorEventCreated uint32 FileMonitorEventDeleted uint32 FileMonitorEventUnmounted uint32 FileMonitorEventPreUnmount uint32 FileMonitorEventAttributeChanged uint32 FileMonitorEventChangesDoneHint uint32 // watcher events FsNotifyCreated uint32 FsNotifyDeleted uint32 FsNotifyModified uint32 FsNotifyRename uint32 FsNotifyAttributeChanged uint32 // contains filtered or unexported fields }
func NewMonitorManager ¶
func NewMonitorManager() *MonitorManager
func (*MonitorManager) GetDBusInfo ¶
func (manager *MonitorManager) GetDBusInfo() dbus.DBusInfo
func (*MonitorManager) Monitor ¶
func (manager *MonitorManager) Monitor(fileURI string, flags uint32) (string, dbus.ObjectPath, string, error)
func (*MonitorManager) Unmonitor ¶
func (manager *MonitorManager) Unmonitor(id uint32)
func (*MonitorManager) Unwatcher ¶
func (manager *MonitorManager) Unwatcher(id uint32)
func (*MonitorManager) Watch ¶
func (manager *MonitorManager) Watch(fileURI string) (string, dbus.ObjectPath, string, error)
type TrashMonitor ¶
type TrashMonitor struct { ItemCountChanged func(uint32) // contains filtered or unexported fields }
func NewTrashMonitor ¶
func NewTrashMonitor() (*TrashMonitor, error)
func (*TrashMonitor) GetDBusInfo ¶
func (monitor *TrashMonitor) GetDBusInfo() dbus.DBusInfo
func (*TrashMonitor) ItemCount ¶
func (monitor *TrashMonitor) ItemCount() uint32
Click to show internal directories.
Click to hide internal directories.