multiparts

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMultipartUploadNotFound = fmt.Errorf("multipart upload not found")
	ErrInvalidUploadID         = errors.New("invalid upload id")
)

Functions

This section is empty.

Types

type MultipartUpload

type MultipartUpload struct {
	UploadID        string    `db:"upload_id"`
	Path            string    `db:"path"`
	CreationDate    time.Time `db:"creation_date"`
	PhysicalAddress string    `db:"physical_address"`
}

type Tracker

type Tracker interface {
	Create(ctx context.Context, uploadID, path, physicalAddress string, creationTime time.Time) error
	Get(ctx context.Context, uploadID string) (*MultipartUpload, error)
	Delete(ctx context.Context, uploadID string) error
}

func NewTracker

func NewTracker(adb db.Database) Tracker

Jump to

Keyboard shortcuts

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