analysiscache

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendedGCRatio = 0.5

Variables

This section is empty.

Functions

func NewCacheDecorator

func NewCacheDecorator(localDatabase string) (backup.AnalyserDecorator, error)

Types

type Decorator

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

func (*Decorator) Close

func (d *Decorator) Close() error

func (*Decorator) Decorate

func (d *Decorator) Decorate(analyseFunc backup.RunnerAnalyserFunc) backup.RunnerAnalyserFunc

type DecoratorInstance

type DecoratorInstance struct {
	DB       *badger.DB
	Delegate backup.RunnerAnalyserFunc
}

func (*DecoratorInstance) Analyse

func (d *DecoratorInstance) Analyse(found backup.FoundMedia, progressChannel chan *backup.ProgressEvent) (*backup.AnalysedMedia, 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