Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) Context(r *image.NRGBA64) (c *freetype.Context)
- func (d *Dao) CreateItemPNG(item model.Item) (location string, err error)
- func (d *Dao) DelSug(c context.Context, seasonID, itemsID int64) (err error)
- func (d *Dao) GetItem(c context.Context, itemsID int64) (item model.Item, err error)
- func (d *Dao) GetMatchType(c context.Context, seasonID, itemsID int64) (matchType int8, err error)
- func (d *Dao) GetSeason(ctx context.Context, seasonID int64) (season model.Season, err error)
- func (d *Dao) InsertMatch(c context.Context, season model.Season, item model.Item, typeInt int8, ...) (affect int64, err error)
- func (d *Dao) ItemList(ctx context.Context, params *model.SourceSearch) (itemsList []model.Items, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SearchV2(c context.Context, params *model.Search) (list []model.SugList, err error)
- func (d *Dao) SeasonList(ctx context.Context, params *model.SourceSearch) (list []model.Season, err error)
- func (d *Dao) SetItem(c context.Context, item *model.Item, location string) (b bool, err error)
- func (d *Dao) SetSug(c context.Context, seasonID int64, ItemID int64, score int64) (err error)
- func (d *Dao) Text(c *freetype.Context, s string, pt *fixed.Point26_6, size int, ...) (err error)
- func (d *Dao) UpdateMatch(c context.Context, season model.Season, item model.Item, typeInt int8, ...) (affect int64, err error)
- func (d *Dao) Upload(c context.Context, fileType string, fileName string, body io.Reader) (location string, 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) CreateItemPNG ¶
CreateItemPNG make a pic for sug
func (*Dao) GetMatchType ¶
GetMatchType get match type.
func (*Dao) InsertMatch ¶
func (d *Dao) InsertMatch(c context.Context, season model.Season, item model.Item, typeInt int8, sort int64, location string) (affect int64, err error)
InsertMatch insert match.
func (*Dao) ItemList ¶
func (d *Dao) ItemList(ctx context.Context, params *model.SourceSearch) (itemsList []model.Items, err error)
ItemList mall items list from http.
func (*Dao) SeasonList ¶
func (d *Dao) SeasonList(ctx context.Context, params *model.SourceSearch) (list []model.Season, err error)
SeasonList search season list.
func (*Dao) Text ¶
func (d *Dao) Text(c *freetype.Context, s string, pt *fixed.Point26_6, size int, color image.Image, length fixed.Int26_6) (err error)
Text draw letters on pic
Click to show internal directories.
Click to hide internal directories.