Documentation ¶
Index ¶
- type CMMysql
- func (ms *CMMysql) Add(dbname string, coll string, data interface{}) error
- func (ms *CMMysql) Close()
- func (ms *CMMysql) Query(dbname string, coll string, condition interface{}, result interface{}) error
- func (ms *CMMysql) Remove(dbname string, coll string, condition interface{}) error
- func (ms *CMMysql) Update(dbname string, coll string, condition interface{}) error
- type CMMysqlSC
- func (msc *CMMysqlSC) AddDevStatus(st SCDevStatus) error
- func (ms *CMMysqlSC) Close()
- func (msc *CMMysqlSC) QueryDevStatus() ([]*SCDevStatus, error)
- func (msc *CMMysqlSC) QueryDevStatusMac(mac string) (*SCDevStatus, error)
- func (msc *CMMysqlSC) RemoveDevStatus() error
- func (msc *CMMysqlSC) UpdateDevStatusMac(st SCDevStatus) error
- type JKDBS
- type JKDBSBase
- type Mongo
- func (m *Mongo) Add(dbname string, coll string, data interface{}) error
- func (m *Mongo) C(col map[string]interface{}) *mgo.Collection
- func (m *Mongo) Close()
- func (m *Mongo) Cnew(dbname string, cname string) *mgo.Collection
- func (m *Mongo) DB(dbname string) *mgo.Database
- func (m *Mongo) DBSession() *mgo.Session
- func (m *Mongo) DbName() string
- func (m *Mongo) Query(dbname string, coll string, find interface{}, condition interface{}, ...) error
- func (m *Mongo) QueryCount(dbname string, coll string, find interface{}) (int, error)
- func (m *Mongo) Remove(dbname string, coll string, condition interface{}) error
- func (m *Mongo) Update(dbname string, coll string, find interface{}, updater interface{}) error
- type MongoCondition
- type SCDevStatus
- type SCDevStatusHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMMysql ¶
type CMMysql struct {
// contains filtered or unexported fields
}
func NewCMMysql ¶
type CMMysqlSC ¶
type CMMysqlSC struct {
// contains filtered or unexported fields
}
func (*CMMysqlSC) AddDevStatus ¶
func (msc *CMMysqlSC) AddDevStatus(st SCDevStatus) error
func (*CMMysqlSC) QueryDevStatus ¶
func (msc *CMMysqlSC) QueryDevStatus() ([]*SCDevStatus, error)
func (*CMMysqlSC) QueryDevStatusMac ¶
func (msc *CMMysqlSC) QueryDevStatusMac(mac string) (*SCDevStatus, error)
func (*CMMysqlSC) RemoveDevStatus ¶
func (*CMMysqlSC) UpdateDevStatusMac ¶
func (msc *CMMysqlSC) UpdateDevStatusMac(st SCDevStatus) error
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) QueryCount ¶
type SCDevStatus ¶
Click to show internal directories.
Click to hide internal directories.