Documentation ¶
Index ¶
- func PromError(name string, format string, args ...interface{})
- type Dao
- func (dao *Dao) Close()
- func (d *Dao) Hot(c context.Context) (res map[int32][]int64, err error)
- func (d *Dao) Live(c context.Context) (count int, err error)
- func (dao *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RegionArcs(c context.Context, rid int32, remoteIP string) (aids []int64, total int, err error)
- func (d *Dao) RegionCache(c context.Context) (rs map[int32][]int64)
- func (d *Dao) RegionTagArcs(c context.Context, rid int32, tagID int64, remoteIP string) (aids []int64, err error)
- func (d *Dao) Rids(c context.Context) (res []int32, err error)
- func (d *Dao) SetRegionCache(c context.Context, regionArcs map[int32][]int64) (err error)
- func (d *Dao) SetTagCache(c context.Context, regionTagArcs map[string][]int64) (err error)
- func (d *Dao) TagCache(c context.Context) (rs map[string][]int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao.
func (*Dao) RegionArcs ¶
func (d *Dao) RegionArcs(c context.Context, rid int32, remoteIP string) (aids []int64, total int, err error)
RegionArcs get new dynamic by bigData API.
func (*Dao) RegionCache ¶
RegionCache get region archive from cache.
func (*Dao) RegionTagArcs ¶
func (d *Dao) RegionTagArcs(c context.Context, rid int32, tagID int64, remoteIP string) (aids []int64, err error)
RegionTagArcs get new dynamic by bigData API.
func (*Dao) SetRegionCache ¶
SetRegionCache set region archive to cache.
func (*Dao) SetTagCache ¶
SetTagCache set region tag archvie to cache.
Click to show internal directories.
Click to hide internal directories.