Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddArcCache(aid int64, arc *arcwar.Arc)
- func (d *Dao) AddRelatesCache(aid int64, rls []*view.Relate)
- func (d *Dao) AddViewCache(aid int64, vp *arcwar.ViewReply)
- func (d *Dao) Archive3(c context.Context, aid int64) (arc *arcwar.Arc, err error)
- func (d *Dao) Archives(c context.Context, aids []int64) (as map[int64]*arcwar.Arc, err error)
- func (d *Dao) FirstTypes() (typeMap map[int32]*model.ArcType, err error)
- func (d *Dao) GetPTypeName(typeID int32) (firstName string, secondName string)
- func (d *Dao) GetView(c context.Context, aid int64) (vp *arcwar.ViewReply, err error)
- func (d *Dao) LoadViews(ctx context.Context, aids []int64) (resMetas map[int64]*arcwar.ViewReply)
- func (d *Dao) Progress(c context.Context, aid, mid int64) (h *view.History, err error)
- func (d *Dao) RelateAids(c context.Context, aid int64, ip string) (aids []int64, err error)
- func (d *Dao) RelatesCache(c context.Context, aid int64) (rls []*view.Relate, err error)
- func (d *Dao) TargetTypes() (tids []int32, err error)
- func (d *Dao) TypeChildren(typeid int32) (children []*arcwar.Tp, err error)
- func (d *Dao) TypeInfo(typeid int32) (*arcwar.Tp, error)
- func (d *Dao) ViewsCache(c context.Context, aids []int64) (cached map[int64]*arcwar.ViewReply, missed []int64, 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 archive dao.
func (*Dao) AddArcCache ¶
AddArcCache add arc cache
func (*Dao) AddRelatesCache ¶
AddRelatesCache add relates
func (*Dao) AddViewCache ¶
AddViewCache add view relates
func (*Dao) FirstTypes ¶
FirstTypes returns only first level of types
func (*Dao) GetPTypeName ¶
GetPTypeName get first level of types name
func (*Dao) RelateAids ¶
RelateAids get relate by aid
func (*Dao) RelatesCache ¶
RelatesCache get relates.
func (*Dao) TargetTypes ¶
TargetTypes get all the ugc ranks that AI prepared for us
func (*Dao) TypeChildren ¶
TypeChildren returns a first level's type children
Click to show internal directories.
Click to hide internal directories.