Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddShare(c context.Context, mid, aid int64, ip string) (ok bool, err error)
- func (d *Dao) Close()
- func (d *Dao) HadFirstShare(c context.Context, mid, aid int64, ip string) (had bool, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PubShare(c context.Context, aid int64, mid int64, ip string) (err error)
- func (d *Dao) PubStatDatabus(c context.Context, aid int64, share int) (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 share dao.
func (*Dao) HadFirstShare ¶
HadFirstShare if key not exist need set expire to one day.
Click to show internal directories.
Click to hide internal directories.