Documentation
¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) Flush()
- func (d *Dao) Has(id uint64) bool
- func (d *Dao) IncrementBackup(c context.Context, stime, etime time.Time) (docs []*model.Document, err error)
- func (d *Dao) Insert(id uint64, content string, forceUpdate bool)
- func (d *Dao) Ping(c context.Context) error
- func (d *Dao) Remove(id uint64, forceUpdate bool)
- func (d *Dao) Search(arg *model.RiotSearchReq) *model.DocumentsResp
- func (d *Dao) SearchIDOnly(arg *model.RiotSearchReq) *model.IDsResp
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 (*Dao) IncrementBackup ¶
func (d *Dao) IncrementBackup(c context.Context, stime, etime time.Time) (docs []*model.Document, err error)
IncrementBackup select mtime>now-24h data
func (*Dao) Search ¶
func (d *Dao) Search(arg *model.RiotSearchReq) *model.DocumentsResp
Search return archives info
func (*Dao) SearchIDOnly ¶
func (d *Dao) SearchIDOnly(arg *model.RiotSearchReq) *model.IDsResp
SearchIDOnly only return aids
Click to show internal directories.
Click to hide internal directories.