Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Add(ctx context.Context, p *model.ShareParams) (shared int64, err error)
- func (d *Dao) AddShare(c context.Context, oid int64, tp int) (err error)
- func (d *Dao) AddShareMember(ctx context.Context, p *model.ShareParams) (ok bool, err error)
- func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) Close()
- func (d *Dao) Ping() (err error)
- func (d *Dao) PubShare(c context.Context, p *model.ShareParams) (err error)
- func (d *Dao) PubStatShare(c context.Context, typ string, oid, count int64) (err error)
- func (d *Dao) SetShareCache(c context.Context, oid int64, tp int, shared int64) (err error)
- func (d *Dao) Share(c context.Context, oid int64, tp int) (share *model.Share, err error)
- func (d *Dao) ShareCache(c context.Context, oid int64, tp int) (shared int64, err error)
- func (d *Dao) ShareCount(ctx context.Context, oid int64, tp int) (count int64, err error)
- func (d *Dao) Shares(ctx context.Context, oids []int64, tp int) (shares map[int64]int64, err error)
- func (d *Dao) SharesCache(c context.Context, oids []int64, tp int) (shares map[int64]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 is redis dao.
func (*Dao) AddShareMember ¶
AddShareMember add share
func (*Dao) PubStatShare ¶
PubStatShare .
func (*Dao) SetShareCache ¶
SetShareCache set share cache
func (*Dao) ShareCache ¶
ShareCache return oid share count
func (*Dao) ShareCount ¶
ShareCount get share from cache/db
Click to show internal directories.
Click to hide internal directories.