factory.go 293 字节
Newer Older
Y
Your Name 已提交
1 2
package ksitigarbha

Y
Your Name 已提交
3
//IModule IModule
Y
Your Name 已提交
4 5 6 7
type IModule interface {
	GetModel() []Model
	GetDesc() string
	GetName() string
Y
Your Name 已提交
8
	GetNameSpace() string
Y
Your Name 已提交
9 10
	GetDefaultConfig() interface{}
	//CheckConfig(interface{}) bool
Y
Your Name 已提交
11 12
	Decode(config string) (interface{}, error)
	Encode(v interface{}) (string, error)
Y
Your Name 已提交
13
}