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)
Click to show internal directories.
Click to hide internal directories.