Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶ added in v1.0.1
Types ¶
type IDbClient ¶
type IDbClient interface {
Insert(attrName string, attrID interface{}, data map[string]interface{}) error
Save(attrName string, attrID interface{}, data map[string]interface{}, needReply bool) error
Del(attrName string, attrID interface{}, needReply bool) error
Load(attrName string, attrID interface{}, isSync ...interface{}) (map[string]interface{}, error)
Exists(attrName string, attrID interface{}) (bool, error)
ForEach(attrName string, callback func(attrID interface{}, data map[string]interface{}))
LoadAll(attrName string) ([]interface {
GetAttrID() interface{}
GetData() map[string]interface{}
}, error)
// contains filtered or unexported methods
}
func GetOrNewDbClient ¶
type IDbConfig ¶
type IDbConfig interface {
//GetType() string
GetAddr() string
GetDB() string
GetUser() string
GetPassword() string
}
func IDbConfigCreator ¶ added in v1.0.1
type Option ¶ added in v1.0.1
func DefaultOption ¶ added in v1.0.1
func DefaultOption() *Option
func (*Option) GetPassword ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.