Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AccountNotify(c context.Context, mid int64) (err error)
- func (d *Dao) BeginTX(c context.Context) (tx *xsql.Tx, err error)
- func (d *Dao) Close()
- func (d *Dao) DeleteUserCache(c context.Context, mid int64) (err error)
- func (d *Dao) InsertExtra(c context.Context, ex *model.DBExtra) (err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SendSysMsg(c context.Context, code string, mids []int64, title string, content string, ...) (err error)
- func (d *Dao) SetSyncBlockTypeID(c context.Context, id int64) (err error)
- func (d *Dao) SyncBlockTypeID(c context.Context) (id int64, err error)
- func (d *Dao) TxInsertHistory(c context.Context, tx *xsql.Tx, h *model.DBHistory) (err error)
- func (d *Dao) TxUpsertExtra(c context.Context, tx *xsql.Tx, ex *model.DBExtra) (err error)
- func (d *Dao) TxUpsertUser(c context.Context, tx *xsql.Tx, mid int64, status model.BlockStatus) (count int64, err error)
- func (d *Dao) UpsertAddBlockCount(c context.Context, mid int64) (err error)
- func (d *Dao) UserExtra(c context.Context, mid int64) (ex *model.DBExtra, err error)
- func (d *Dao) UserLastHistory(c context.Context, mid int64) (his *model.DBHistory, err error)
- func (d *Dao) UserStatusList(c context.Context, status model.BlockStatus, startID int64, limit int) (maxID int64, mids []int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func New ¶
func New(conf *conf.Config, mc *memcache.Pool, db *xsql.DB, client *bm.Client, notifyFunc notifyFunc) (dao *Dao)
New init mysql db
func (*Dao) AccountNotify ¶
AccountNotify is
func (*Dao) DeleteUserCache ¶
DeleteUserCache is.
func (*Dao) InsertExtra ¶
InsertExtra is.
func (*Dao) SendSysMsg ¶
func (d *Dao) SendSysMsg(c context.Context, code string, mids []int64, title string, content string, remoteIP string) (err error)
SendSysMsg send sys msg.
func (*Dao) SetSyncBlockTypeID ¶
SetSyncBlockTypeID is.
func (*Dao) SyncBlockTypeID ¶
SyncBlockTypeID is.
func (*Dao) TxInsertHistory ¶
TxInsertHistory is.
func (*Dao) TxUpsertExtra ¶
TxUpsertExtra is.
func (*Dao) TxUpsertUser ¶
func (d *Dao) TxUpsertUser(c context.Context, tx *xsql.Tx, mid int64, status model.BlockStatus) (count int64, err error)
TxUpsertUser is.
func (*Dao) UpsertAddBlockCount ¶
UpsertAddBlockCount is.
func (*Dao) UserLastHistory ¶
UserLastHistory is.
Click to show internal directories.
Click to hide internal directories.