manager

package
v1.7.15 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

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 added in v1.1.0

func New() *Manager

func (*Manager) AddAllow added in v1.3.5

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

func (*Manager) AddCallback added in v1.3.5

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

func (*Manager) AddIgnore added in v1.3.5

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

func (*Manager) AddWatchDir added in v1.3.5

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

func (*Manager) CacheDelete

func (m *Manager) CacheDelete(tmpl string)

func (*Manager) CacheTemplate

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

func (*Manager) CancelWatchDir added in v1.3.5

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

func (*Manager) ChangeWatchDir added in v1.3.5

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

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

func (m *Manager) Close()

func (*Manager) DelAllow added in v1.3.5

func (m *Manager) DelAllow(allow string)

func (*Manager) DelCallback added in v1.3.5

func (m *Manager) DelCallback(rootDir string)

func (*Manager) DelIgnore added in v1.3.5

func (m *Manager) DelIgnore(ignore string)

func (*Manager) GetTemplate

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

func (*Manager) SetLogger added in v1.1.0

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

func (*Manager) SetTemplate added in v1.6.0

func (m *Manager) SetTemplate(tmpl string, content []byte) error

func (*Manager) Start added in v1.3.5

func (m *Manager) Start() error

Jump to

Keyboard shortcuts

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