synccompactor

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 16 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, outputDir string, compactableSyncs []*CompactableSync, opts ...Option) (*Compactor, func() error, error)

func (*Compactor) Compact

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

type CompactorType added in v0.3.36

type CompactorType string
const (
	CompactorTypeAttached CompactorType = "attached"
)

type Option added in v0.3.5

type Option func(*Compactor)

func WithCompactorType added in v0.3.36

func WithCompactorType(compactorType CompactorType) Option

func WithRunDuration added in v0.5.13

func WithRunDuration(runDuration time.Duration) Option

func WithTmpDir added in v0.3.5

func WithTmpDir(tempDir string) Option

WithTmpDir sets the working directory where files will be created and edited during compaction. If not provided, the temporary directory will be used.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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