localstorage

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: 14 Imported by: 0

Documentation

Overview

Package localstorage provides a temporary location where files can be copied to be quickly read for analyse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

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

LocalStorage stores remote files locally so they can be analysed quickly TODO - keep files under 10MB in a 512MB in-memory cache

func NewLocalStorage

func NewLocalStorage(localDir string, bufferAreaSizeInBytes int) (*LocalStorage, error)

func (*LocalStorage) DownloadMedia

func (l *LocalStorage) DownloadMedia(found backupmodel.FoundMedia) (backupmodel.FoundMedia, error)

Jump to

Keyboard shortcuts

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