Documentation ¶
Index ¶
- Variables
- func FixDirSeparator(dir string) string
- type Manager
- func (m *Manager) AddAllow(allows ...string)
- func (m *Manager) AddCallback(rootDir string, callback func(name, typ, event string))
- func (m *Manager) AddIgnore(ignores ...string)
- func (m *Manager) AddWatchDir(ppath string) (err error)
- func (m *Manager) CacheDelete(tmpl string)
- func (m *Manager) CacheTemplate(tmpl string, content []byte)
- func (m *Manager) CancelWatchDir(oldDir string) (err error)
- func (m *Manager) ChangeWatchDir(oldDir string, newDir string) (err error)
- func (m *Manager) ClearAllows()
- func (m *Manager) ClearCache()
- func (m *Manager) ClearCallback()
- func (m *Manager) ClearIgnores()
- func (m *Manager) Close()
- func (m *Manager) DelAllow(allow string)
- func (m *Manager) DelCallback(rootDir string)
- func (m *Manager) DelIgnore(ignore string)
- func (m *Manager) GetTemplate(tmpl string) ([]byte, error)
- func (m *Manager) SetLogger(logger logger.Logger)
- func (m *Manager) SetTemplate(tmpl string, content []byte) error
- func (m *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 ¶ added in v1.3.5
func (*Manager) AddWatchDir ¶ added in v1.3.5
func (*Manager) CacheDelete ¶
func (*Manager) CacheTemplate ¶
func (*Manager) CancelWatchDir ¶ added in v1.3.5
func (*Manager) ChangeWatchDir ¶ added in v1.3.5
func (*Manager) ClearAllows ¶ added in v1.3.5
func (m *Manager) ClearAllows()
func (*Manager) ClearCache ¶
func (m *Manager) ClearCache()
func (*Manager) ClearCallback ¶ added in v1.3.5
func (m *Manager) ClearCallback()
func (*Manager) ClearIgnores ¶ added in v1.3.5
func (m *Manager) ClearIgnores()
func (*Manager) DelCallback ¶ added in v1.3.5
func (*Manager) SetTemplate ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.