Documentation
¶
Index ¶
- func PromError(name string, format string, args ...interface{})
- type Dao
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SetSharesCache(c context.Context, expire int, mid int64, shares map[string]int64) (err error)
- func (d *Dao) Shares(c context.Context, mid int64) (res []*shamdl.Share, err error)
- func (d *Dao) SharesCache(c context.Context, mid int64) (res map[string]int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao struct.
func (*Dao) SetSharesCache ¶
func (d *Dao) SetSharesCache(c context.Context, expire int, mid int64, shares map[string]int64) (err error)
SetSharesCache back cache from db.
Click to show internal directories.
Click to hide internal directories.