analysiscache

package
v1.6.32 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendedGCRatio = 0.5

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyserCache added in v1.6.26

type AnalyserCache struct {
	DB *badger.DB
}

func NewAnalyserCache added in v1.6.26

func NewAnalyserCache(localDatabase string) (*AnalyserCache, error)

func (*AnalyserCache) Close added in v1.6.26

func (d *AnalyserCache) Close() error

func (*AnalyserCache) Decorate added in v1.6.26

func (d *AnalyserCache) Decorate(analyser backup.Analyser, observers ...backup.AnalyserDecoratorObserver) backup.Analyser

func (*AnalyserCache) RestoreCache added in v1.6.26

func (d *AnalyserCache) RestoreCache(found backup.FoundMedia) (*backup.AnalysedMedia, bool, error)

func (*AnalyserCache) StoreCache added in v1.6.26

func (d *AnalyserCache) StoreCache(analysedMedia *backup.AnalysedMedia) error

type AnalyserCacheWrapper added in v1.6.26

type AnalyserCacheWrapper struct {
	Delegate      backup.Analyser
	AnalyserCache *AnalyserCache
	Observers     []backup.AnalyserDecoratorObserver
}

func (*AnalyserCacheWrapper) Analyse added in v1.6.26

func (a *AnalyserCacheWrapper) Analyse(ctx context.Context, found backup.FoundMedia, analysedMediaObserver backup.AnalysedMediaObserver) error

type Key

type Key struct {
	AbsolutePath string
	Size         int
}

func (Key) SerialisedKey

func (k Key) SerialisedKey() []byte

func (Key) String

func (k Key) String() string

type Payload

type Payload struct {
	LastModification time.Time           `json:"lastModification,omitempty"`
	Type             string              `json:"type,omitempty"`
	Sha256Hash       string              `json:"sha256Hash,omitempty"`
	Details          backup.MediaDetails `json:"details,omitempty"`
}

Jump to

Keyboard shortcuts

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