manager

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Overview

Copyright 2016 Wenhui Shen <www.webx.top>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 Wenhui Shen <www.webx.top>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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
}

func New added in v1.1.0

func New() *Manager

func (*Manager) AddAllow added in v1.3.5

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

func (*Manager) AddCallback added in v1.3.5

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

func (*Manager) AddIgnore added in v1.3.5

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

func (*Manager) AddWatchDir added in v1.3.5

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

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

func (*Manager) ChangeWatchDir added in v1.3.5

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

func (*Manager) ClearAllows added in v1.3.5

func (self *Manager) ClearAllows()

func (*Manager) ClearCache

func (self *Manager) ClearCache()

func (*Manager) ClearCallback added in v1.3.5

func (self *Manager) ClearCallback()

func (*Manager) ClearIgnores added in v1.3.5

func (self *Manager) ClearIgnores()

func (*Manager) Close

func (self *Manager) Close()

func (*Manager) DelAllow added in v1.3.5

func (self *Manager) DelAllow(allow string)

func (*Manager) DelCallback added in v1.3.5

func (self *Manager) DelCallback(rootDir string)

func (*Manager) DelIgnore added in v1.3.5

func (self *Manager) DelIgnore(ignore string)

func (*Manager) GetTemplate

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

func (*Manager) SetLogger added in v1.1.0

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

func (*Manager) Start added in v1.3.5

func (self *Manager) Start() error

Jump to

Keyboard shortcuts

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