Documentation ¶
Index ¶
- func PromError(name string, format string, args ...interface{})
- type Dao
- func (dao *Dao) ActVideoMTimeCount(c context.Context) (mtime xtime.Time, err error)
- func (dao *Dao) AdVideoMTimeCount(c context.Context, now time.Time) (mtime xtime.Time, err error)
- func (dao *Dao) AllVideoActive(c context.Context, now time.Time) (ads []resource.VideoAD, err error)
- func (dao *Dao) Assignment(c context.Context) (asgs []*resource.Assignment, err error)
- func (dao *Dao) BeginTran(c context.Context) (tx *xsql.Tx, err error)
- func (dao *Dao) Close()
- func (dao *Dao) DefaultBanner(c context.Context) (asg *resource.Assignment, err error)
- func (dao *Dao) DelAllVideo(c context.Context) (err error)
- func (dao *Dao) Ping(c context.Context) (err error)
- func (dao *Dao) Resources(c context.Context) (rscs []*resource.Res, err error)
- func (dao *Dao) TxInsertVideo(tx *xsql.Tx, vad resource.VideoAD) (err error)
- func (dao *Dao) VideoAds(c context.Context) (vads map[int64][]*resource.VideoAD, 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 struct
func (*Dao) ActVideoMTimeCount ¶
ActVideoMTimeCount dao
func (*Dao) AdVideoMTimeCount ¶
AdVideoMTimeCount dao
func (*Dao) AllVideoActive ¶
func (dao *Dao) AllVideoActive(c context.Context, now time.Time) (ads []resource.VideoAD, err error)
AllVideoActive dao
func (*Dao) Assignment ¶
Assignment get assigment from db
func (*Dao) DefaultBanner ¶
DefaultBanner set
func (*Dao) DelAllVideo ¶
DelAllVideo dao
func (*Dao) TxInsertVideo ¶
TxInsertVideo dao
Click to show internal directories.
Click to hide internal directories.