Documentation ¶
Index ¶
- Constants
- func IsSame(src Source, dst Source) bool
- func NewFileObjectSchemeError(id string) error
- func PanicErrorHandler(err error)
- func Read(s Source) ([]byte, error)
- func RegisterCreator(name string, creator func(id string) (Source, error))
- type ErrorType
- type File
- type FileObjectError
- type SchemeWatcher
- type Source
- type Text
- type Unwatcher
- type WatchManager
- func (w *WatchManager) AddUnwatcher(s Source, h func())
- func (w *WatchManager) C() chan int
- func (w *WatchManager) RegisterWatcher(watcher Watcher) error
- func (w *WatchManager) Reset() error
- func (w *WatchManager) Start() error
- func (w *WatchManager) Stop() error
- func (w *WatchManager) Unwatch()
- func (w *WatchManager) Watch(s Source, callback func()) (unwatcher func(), err error)
- type Watcher
Constants ¶
View Source
const ErrTypeFileObjectSchemeNotavaliable = ErrorType("schemenotavaliable")
Variables ¶
This section is empty.
Functions ¶
func PanicErrorHandler ¶
func PanicErrorHandler(err error)
Types ¶
type FileObjectError ¶
func (*FileObjectError) Error ¶
func (f *FileObjectError) Error() string
type SchemeWatcher ¶
func NewSchemeWatcher ¶
func NewSchemeWatcher(scheme string, watcher Watcher) *SchemeWatcher
func (*SchemeWatcher) Watch ¶
func (w *SchemeWatcher) Watch(s Source, callback func()) (unwatcher func(), err error)
type WatchManager ¶
type WatchManager struct { Unwatchers []*Unwatcher ErrorHandler func(err error) // contains filtered or unexported fields }
func NewWatchManager ¶
func NewWatchManager() *WatchManager
func (*WatchManager) AddUnwatcher ¶
func (w *WatchManager) AddUnwatcher(s Source, h func())
func (*WatchManager) C ¶
func (w *WatchManager) C() chan int
func (*WatchManager) RegisterWatcher ¶
func (w *WatchManager) RegisterWatcher(watcher Watcher) error
func (*WatchManager) Reset ¶
func (w *WatchManager) Reset() error
func (*WatchManager) Start ¶
func (w *WatchManager) Start() error
func (*WatchManager) Stop ¶
func (w *WatchManager) Stop() error
func (*WatchManager) Unwatch ¶
func (w *WatchManager) Unwatch()
func (*WatchManager) Watch ¶
func (w *WatchManager) Watch(s Source, callback func()) (unwatcher func(), err error)
Click to show internal directories.
Click to hide internal directories.