Documentation ¶
Index ¶
- type Dao
- func (d *Dao) DiffNew(c context.Context) (file *model.ResourceFile, err error)
- func (d *Dao) DiffRetry(c context.Context) (file *model.ResourceFile, err error)
- func (d *Dao) DownloadFile(ctx context.Context, api string, fileName string) (bts int64, err error)
- func (d *Dao) ParseResID(c context.Context, resID int) (res *model.Resource, err error)
- func (d *Dao) ParseResVer(c context.Context, poolID int, version int) (res *model.Resource, err error)
- func (d *Dao) ReadyFile(c context.Context, resID int, ftype int) (file *model.ResourceFile, err error)
- func (d *Dao) SaveFile(c context.Context, fileID int, file *model.FileInfo) (err error)
- func (d *Dao) UpdateStatus(c context.Context, status int, id int) (err error)
- func (d *Dao) Upload(c context.Context, fileName string, fileType string, timing int64, data []byte, ...) (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 .
func (*Dao) DownloadFile ¶
DownloadFile downloads one file from url to local
func (*Dao) ParseResID ¶
ParseResID takes one resource info
func (*Dao) ParseResVer ¶
func (d *Dao) ParseResVer(c context.Context, poolID int, version int) (res *model.Resource, err error)
ParseResVer takes one resource info
func (*Dao) ReadyFile ¶
func (d *Dao) ReadyFile(c context.Context, resID int, ftype int) (file *model.ResourceFile, err error)
ReadyFile takes the already generated file
func (*Dao) UpdateStatus ¶
UpdateStatus updates the file's status
Click to show internal directories.
Click to hide internal directories.