synccompactor

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnoughFilesToCompact = errors.New("must provide two or more files to compact")

Functions

This section is empty.

Types

type CompactableSync

type CompactableSync struct {
	FilePath string
	SyncID   string
}

type Compactor

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

func NewCompactor

func NewCompactor(ctx context.Context, destDir string, compactableSyncs []*CompactableSync, opts ...Option) (*Compactor, error)

func (*Compactor) Compact

func (c *Compactor) Compact(ctx context.Context) (*CompactableSync, error)

type Option added in v0.3.5

type Option func(*Compactor)

func WithTmpDir added in v0.3.5

func WithTmpDir(tmpDir string) Option

WithTmpDir sets the temporary directory for intermediate files during compaction.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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