package
Version:
v0.0.0-...-bcf4c9c
Opens a new window with list of versions in this module.
Published: Jun 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetKeys 获取配置文件中模板里指定的所有key
这些key用来去Storage中获取数据
func Register(name string, fn interface{})
Register 注册模板渲染函数
type Config struct {
Src string `toml:"src"`
Dst string `toml:"dst"`
Keys []string `toml:"keys"`
ReloadCmd string `toml:"reload_cmd"`
}
Config 应用模板配置
type Processor struct {
}
Processor 模板实际处理者
NewProcessor 创建Processor实例
GetInKeys 给定一些key, 判断哪些key在process, 并返回
Source Files
¶
Click to show internal directories.
Click to hide internal directories.