uploaders

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogProxy

type CatalogProxy struct{}

func (CatalogProxy) Create

func (c CatalogProxy) Create(createRequest catalog.CreateAlbum) error

func (CatalogProxy) FindAllAlbums

func (c CatalogProxy) FindAllAlbums() ([]*catalog.Album, error)

func (CatalogProxy) FindSignatures

func (c CatalogProxy) FindSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)

func (CatalogProxy) InsertMedias

func (c CatalogProxy) InsertMedias(medias []catalog.CreateMediaRequest) error

type CatalogProxyAdapter

type CatalogProxyAdapter interface {
	FindAllAlbums() ([]*catalog.Album, error)
	InsertMedias(medias []catalog.CreateMediaRequest) error
	Create(createRequest catalog.CreateAlbum) error
	FindSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
}

type Uploader

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

func NewUploader

func NewUploader(catalogProxy CatalogProxyAdapter, onlineStorage backupmodel.OnlineStorageAdapter, owner string, postFilter backupmodel.PostAnalyseFilter) (*Uploader, error)

func (*Uploader) Upload

func (u *Uploader) Upload(buffer []*backupmodel.AnalysedMedia, progressChannel chan *backupmodel.ProgressEvent) error

Jump to

Keyboard shortcuts

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