Documentation ¶
Index ¶
- Constants
- type AnalyserCache
- func (d *AnalyserCache) Close() error
- func (d *AnalyserCache) Decorate(analyser backup.Analyser, observers ...backup.AnalyserDecoratorObserver) backup.Analyser
- func (d *AnalyserCache) RestoreCache(found backup.FoundMedia) (*backup.AnalysedMedia, bool, error)
- func (d *AnalyserCache) StoreCache(analysedMedia *backup.AnalysedMedia) error
- type AnalyserCacheWrapper
- type Key
- type Payload
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 ¶
func (Key) SerialisedKey ¶
Click to show internal directories.
Click to hide internal directories.