caldiff

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (d *Dao)

New creates a dao instance.

func (*Dao) DiffNew

func (d *Dao) DiffNew(c context.Context) (file *model.ResourceFile, err error)

DiffNew picks the recently created diff packages

func (*Dao) DiffRetry

func (d *Dao) DiffRetry(c context.Context) (file *model.ResourceFile, err error)

DiffRetry picks the recently created diff packages

func (*Dao) DownloadFile

func (d *Dao) DownloadFile(ctx context.Context, api string, fileName string) (bts int64, err error)

DownloadFile downloads one file from url to local

func (*Dao) ParseResID

func (d *Dao) ParseResID(c context.Context, resID int) (res *model.Resource, err error)

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) SaveFile

func (d *Dao) SaveFile(c context.Context, fileID int, file *model.FileInfo) (err error)

SaveFile saves the file info

func (*Dao) UpdateStatus

func (d *Dao) UpdateStatus(c context.Context, status int, id int) (err error)

UpdateStatus updates the file's status

func (*Dao) Upload

func (d *Dao) Upload(c context.Context, fileName string, fileType string, timing int64, data []byte, bfs *conf.Bfs) (location string, err error)

Upload upload picture or log file to bfs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL