Documentation
¶
Index ¶
- func GetRenderedConfFromFile(path string) (out string, err error)
- func LoadAllCatalogFromIni(content string) (catalogs map[string]*CatalogConf, err error)
- func ParseIgnoreRegexp(ignore string) []string
- func ParseIgnoreSuffix(ignore string) []string
- func ReaderContent(in string) (out string, err error)
- type CatalogConf
- type ServerCommonConf
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRenderedConfFromFile ¶
func LoadAllCatalogFromIni ¶
func LoadAllCatalogFromIni(content string) (catalogs map[string]*CatalogConf, err error)
func ParseIgnoreRegexp ¶
func ParseIgnoreSuffix ¶
func ReaderContent ¶
Types ¶
type CatalogConf ¶
type CatalogConf struct {
Name string `json:"name"`
Path string `json:"path"`
IgnoreSuffixs []string `json:"ignore_suffix"`
IgnoreRegexp []string `json:"ignore_regexp"`
ChildFile []string `json:"child_file"`
}
func (*CatalogConf) Check ¶
func (cf *CatalogConf) Check() (err error)
func (*CatalogConf) FullFilePath ¶
func (cf *CatalogConf) FullFilePath(filePath string) string
func (*CatalogConf) HasChildFile ¶
func (cf *CatalogConf) HasChildFile(childfile string) (ok bool)
type ServerCommonConf ¶
type ServerCommonConf struct {
BindAddr string `json:"bind_addr"`
BindPort int `json:"bind_port"`
// time unit minute
ConnMaxTime time.Duration `json:"con_max_time"`
// time unit second
HeartInterval time.Duration `json:"heart_interval"`
LogFile string `json:"log_file"`
LogLevel string `json:"log_level"`
LogWay string `json:"log_way"`
LogMaxDays int64 `json:"log_max_days"`
User string `json:"user"`
Pwd string `json:"pwd"`
IgnoreSuffix []string `json:"ignore_suffix"`
IgnoreRegexp []string `json:"ignore_regexp"`
LastReadOffset int64 `json:"last_read_offset"`
AssetsDir string `json:"assets_dir"`
}
func GetDefaultServerConf ¶
func GetDefaultServerConf() *ServerCommonConf
func UnmarshalServerConfFromIni ¶
func UnmarshalServerConfFromIni(defaultCfg *ServerCommonConf, content string) (cfg *ServerCommonConf, err error)
func (*ServerCommonConf) Check ¶
func (cfg *ServerCommonConf) Check() (err error)
Click to show internal directories.
Click to hide internal directories.