sync

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sync provides functionalities to synchronize data between different storage providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer(db *database.DB, cfg *config.Config, factory *storage.Factory, logger *slog.Logger) *Synchronizer

func (*Synchronizer) SyncAll

func (s *Synchronizer) SyncAll(ctx context.Context) error

func (*Synchronizer) SyncBuckets

func (s *Synchronizer) SyncBuckets(ctx context.Context, mapping config.BucketMapping, logger *slog.Logger) error

SyncBuckets synchronizes a specific mapping between buckets

Jump to

Keyboard shortcuts

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