manager

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default driver.Manager = New()

Functions

func FixDirSeparator

func FixDirSeparator(dir string) string

Types

type Manager

type Manager struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

Manager Tempate manager

func New

func New() *Manager

func (*Manager) AddAllow

func (self *Manager) AddAllow(allows ...string)

func (*Manager) AddCallback

func (self *Manager) AddCallback(rootDir string, callback func(name, typ, event string))

func (*Manager) AddIgnore

func (self *Manager) AddIgnore(ignores ...string)

func (*Manager) AddWatchDir

func (self *Manager) AddWatchDir(ppath string) (err error)

func (*Manager) CacheDelete

func (self *Manager) CacheDelete(tmpl string)

func (*Manager) CacheTemplate

func (self *Manager) CacheTemplate(tmpl string, content []byte)

func (*Manager) CancelWatchDir

func (self *Manager) CancelWatchDir(oldDir string) (err error)

func (*Manager) ChangeWatchDir

func (self *Manager) ChangeWatchDir(oldDir string, newDir string) (err error)

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) Close

func (self *Manager) Close()

func (*Manager) DelAllow

func (self *Manager) DelAllow(allow string)

func (*Manager) DelCallback

func (self *Manager) DelCallback(rootDir string)

func (*Manager) DelIgnore

func (self *Manager) DelIgnore(ignore string)

func (*Manager) GetTemplate

func (self *Manager) GetTemplate(tmpl string) ([]byte, error)

func (*Manager) SetLogger

func (self *Manager) SetLogger(logger logger.Logger)

func (*Manager) Start

func (self *Manager) Start() error

Jump to

Keyboard shortcuts

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