app

package
v0.0.0-...-4e99a26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 CmdInfo

type CmdInfo struct {
	// contains filtered or unexported fields
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Ignore

type Ignore struct {
	// contains filtered or unexported fields
}

type Watch

type Watch struct {
	// contains filtered or unexported fields
}

func (*Watch) AddTask

func (w *Watch) AddTask(pathName string)

func (*Watch) Block

func (w *Watch) Block()

func (*Watch) CreateListenPath

func (w *Watch) CreateListenPath(pathName string)

func (*Watch) CreateWatch

func (w *Watch) CreateWatch()

func (*Watch) DelayTask

func (w *Watch) DelayTask()

func (*Watch) GetConfig

func (w *Watch) GetConfig()

func (*Watch) GetContent

func (w *Watch) GetContent(pathName string) (string, error)

func (*Watch) GetMd5

func (w *Watch) GetMd5(pathName string) (string, error)

func (*Watch) GetMd5FromCache

func (w *Watch) GetMd5FromCache(pathName string) string

func (*Watch) GetModTime

func (w *Watch) GetModTime(pathName string) string

func (*Watch) GetModTimeFromCache

func (w *Watch) GetModTimeFromCache(pathName string) string

func (*Watch) GetSize

func (w *Watch) GetSize(pathName string) (int, error)

func (*Watch) IsUpdate

func (w *Watch) IsUpdate(pathName string) bool

func (*Watch) Listen

func (w *Watch) Listen()

func (*Watch) Loop

func (w *Watch) Loop()

func (*Watch) MatchFile

func (w *Watch) MatchFile(pathName string) bool

func (*Watch) MatchOthers

func (w *Watch) MatchOthers(pathName string) bool

func (*Watch) MatchPath

func (w *Watch) MatchPath(pathName string) bool

func (*Watch) Run

func (w *Watch) Run()

func (*Watch) RunTask

func (w *Watch) RunTask()

func (*Watch) SetMd5ToCache

func (w *Watch) SetMd5ToCache(pathName string, value string)

func (*Watch) SetModTimeToCache

func (w *Watch) SetModTimeToCache(pathName string, value string)

func (*Watch) StartServer

func (w *Watch) StartServer(host string)

func (*Watch) StopProcess

func (w *Watch) StopProcess()

func (*Watch) Task

func (w *Watch) Task(event fsnotify.Event)

func (*Watch) WatchPathExceptIgnore

func (w *Watch) WatchPathExceptIgnore()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL