Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJson2Cache ¶
func ParseJson2Cache(obj ICommonConfig, data interface{}, filename string)
purpose: parse json to related config module. param 1: config module. param 2: config read list. param 3: file name.
Types ¶
type ICommonConfig ¶
type ICommonConfig interface { ComfireAct(data interface{}) (errlist []string) DataRWAct(data interface{}) (errlist []string) }
all config module inherit interface.
type TConfig ¶
type TConfig struct {
// contains filtered or unexported fields
}
common load config module.
type TJsonParseTool ¶
type TJsonParseTool struct { }
func NewJsonParseTool ¶
func NewJsonParseTool() *TJsonParseTool
func (*TJsonParseTool) Parse ¶
func (this *TJsonParseTool) Parse(jsonName string, data interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.