rootstore

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: AGPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// StorageKeyPath is the key of the path of uploaded file in handler.FileInfo.Storage.
	StorageKeyPath = "Path"
	// StorageKeyInfoPath is the key of the path of .info file in handler.FileInfo.Storage.
	StorageKeyInfoPath = "InfoPath"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RootStore

type RootStore struct {
	// contains filtered or unexported fields
}

RootStore is a file system based data store for tusd.

func New

func New(root *os.Root) RootStore

func (RootStore) AsConcatableUpload

func (store RootStore) AsConcatableUpload(upload handler.Upload) handler.ConcatableUpload

func (RootStore) AsLengthDeclarableUpload

func (store RootStore) AsLengthDeclarableUpload(upload handler.Upload) handler.LengthDeclarableUpload

func (RootStore) AsServableUpload

func (store RootStore) AsServableUpload(upload handler.Upload) handler.ServableUpload

func (RootStore) AsTerminatableUpload

func (store RootStore) AsTerminatableUpload(upload handler.Upload) handler.TerminatableUpload

func (RootStore) GetUpload

func (store RootStore) GetUpload(_ context.Context, id string) (handler.Upload, error)

func (RootStore) NewUpload

func (store RootStore) NewUpload(_ context.Context, info handler.FileInfo) (handler.Upload, error)

func (RootStore) UseIn

func (store RootStore) UseIn(composer *handler.StoreComposer)

UseIn sets this store as the core data store in the passed composer and adds all possible extension to it.

Jump to

Keyboard shortcuts

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