Documentation ¶
Index ¶
- Constants
- Variables
- type CmdInfo
- type Config
- type Ignore
- type Watch
- func (w *Watch) AddTask(pathName string)
- func (w *Watch) Block()
- func (w *Watch) CreateListenPath(pathName string)
- func (w *Watch) CreateWatch()
- func (w *Watch) DelayTask()
- func (w *Watch) GetConfig()
- func (w *Watch) GetContent(pathName string) (string, error)
- func (w *Watch) GetMd5(pathName string) (string, error)
- func (w *Watch) GetMd5FromCache(pathName string) string
- func (w *Watch) GetModTime(pathName string) string
- func (w *Watch) GetModTimeFromCache(pathName string) string
- func (w *Watch) GetSize(pathName string) (int, error)
- func (w *Watch) IsUpdate(pathName string) bool
- func (w *Watch) Listen()
- func (w *Watch) Loop()
- func (w *Watch) MatchFile(pathName string) bool
- func (w *Watch) MatchOthers(pathName string) bool
- func (w *Watch) MatchPath(pathName string) bool
- func (w *Watch) Run()
- func (w *Watch) RunTask()
- func (w *Watch) SetMd5ToCache(pathName string, value string)
- func (w *Watch) SetModTimeToCache(pathName string, value string)
- func (w *Watch) StartServer(host string)
- func (w *Watch) StopProcess()
- func (w *Watch) Task(event fsnotify.Event)
- func (w *Watch) WatchPathExceptIgnore()
Constants ¶
View Source
const Interval = 300 * time.Millisecond
Variables ¶
View Source
var Template = `` /* 674-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func (*Watch) CreateListenPath ¶
func (*Watch) CreateWatch ¶
func (w *Watch) CreateWatch()
func (*Watch) GetMd5FromCache ¶
func (*Watch) GetModTime ¶
func (*Watch) GetModTimeFromCache ¶
func (*Watch) MatchOthers ¶
func (*Watch) SetMd5ToCache ¶
func (*Watch) SetModTimeToCache ¶
func (*Watch) StartServer ¶ added in v1.0.1
func (*Watch) StopProcess ¶
func (w *Watch) StopProcess()
func (*Watch) WatchPathExceptIgnore ¶
func (w *Watch) WatchPathExceptIgnore()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.