bfs

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: 19 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 is bfs dao.

func New

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

New new a bfs dao.

func (*Dao) Capture

func (d *Dao) Capture(c context.Context, url string) (loc string, size int, err error)

Capture performs a HTTP Get request for the image url and upload bfs.

func (*Dao) UpVideoCovers

func (d *Dao) UpVideoCovers(c context.Context, covers []string) (cvs []string, err error)

UpVideoCovers upload video covers.

func (*Dao) Upload

func (d *Dao) Upload(c context.Context, fileType string, bs []byte) (location string, err error)

Upload upload bfs.

func (*Dao) UploadArc

func (d *Dao) UploadArc(c context.Context, fileType string, body io.Reader) (location string, err error)

UploadArc upload bfs to archive bucket.

func (*Dao) UploadByFile

func (d *Dao) UploadByFile(c context.Context, imgpath string) (location string, err error)

UploadByFile upload local img file.

Jump to

Keyboard shortcuts

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