local

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *store.Config) (store.Store, error)

Types

type Chunk

type Chunk struct {
	types.CreateModel
	UploadID string `json:"upload_id"`
	Index    int    `json:"index"`
	Sha      string `json:"sha"`
	Data     string `json:"data"`
	Size     int    `json:"size"`
}

func (*Chunk) Add

func (c *Chunk) Add(db *gorm.DB) error

func (*Chunk) Copy

func (c *Chunk) Copy(db *gorm.DB, uploadId string, index int) error

func (*Chunk) Delete

func (c *Chunk) Delete(db *gorm.DB, uploadId string) error

func (*Chunk) OneBySha

func (c *Chunk) OneBySha(db *gorm.DB, sha string) error

func (*Chunk) Parts

func (c *Chunk) Parts(db *gorm.DB, uploadId string) ([]*Chunk, error)

Jump to

Keyboard shortcuts

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