Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddCache(c context.Context, key string, val []byte) (err error)
- func (d *Dao) ClearCache(c context.Context) (err error)
- func (d *Dao) Close()
- func (d *Dao) DelCache(c context.Context, key string) (err error)
- func (d *Dao) GetCache(c context.Context, key string) (res []byte, err error)
- func (d *Dao) GetFile(c context.Context, path string) (res []byte, err error)
- func (d *Dao) GetItem(c context.Context, id int, bot bool) (res []byte, err error)
- func (d *Dao) GetPro(c context.Context, id int, bot bool) (res []byte, err error)
- func (d *Dao) GetUrl(c context.Context, url string) (res []byte, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Sitemap(c context.Context, host string) (res []byte, 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 (*Dao) ClearCache ¶
ClearCache clear all page cache
Click to show internal directories.
Click to hide internal directories.