Documentation ¶
Index ¶
- Variables
- func FixDirSeparator(dir string) string
- type Manager
- func (self *Manager) AddAllow(allows ...string)
- func (self *Manager) AddCallback(rootDir string, callback func(name, typ, event string))
- func (self *Manager) AddIgnore(ignores ...string)
- func (self *Manager) AddWatchDir(ppath string) (err error)
- func (self *Manager) CacheDelete(tmpl string)
- func (self *Manager) CacheTemplate(tmpl string, content []byte)
- func (self *Manager) CancelWatchDir(oldDir string) (err error)
- func (self *Manager) ChangeWatchDir(oldDir string, newDir string) (err error)
- func (self *Manager) ClearAllows()
- func (self *Manager) ClearCache()
- func (self *Manager) ClearCallback()
- func (self *Manager) ClearIgnores()
- func (self *Manager) Close()
- func (self *Manager) DelAllow(allow string)
- func (self *Manager) DelCallback(rootDir string)
- func (self *Manager) DelIgnore(ignore string)
- func (self *Manager) GetTemplate(tmpl string) ([]byte, error)
- func (self *Manager) SetLogger(logger logger.Logger)
- func (self *Manager) Start() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Default driver.Manager = New()
Functions ¶
func FixDirSeparator ¶
Types ¶
type Manager ¶
Manager Tempate manager
func (*Manager) AddCallback ¶
func (*Manager) AddWatchDir ¶
func (*Manager) CacheDelete ¶
func (*Manager) CacheTemplate ¶
func (*Manager) CancelWatchDir ¶
func (*Manager) ChangeWatchDir ¶
func (*Manager) ClearAllows ¶
func (self *Manager) ClearAllows()
func (*Manager) ClearCache ¶
func (self *Manager) ClearCache()
func (*Manager) ClearCallback ¶
func (self *Manager) ClearCallback()
func (*Manager) ClearIgnores ¶
func (self *Manager) ClearIgnores()
func (*Manager) DelCallback ¶
Click to show internal directories.
Click to hide internal directories.