sync

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Syncer)

Option configures a Syncer

func WithCountProgressCallback

func WithCountProgressCallback(fn func(current, total int)) Option

WithCountProgressCallback sets a callback for numeric progress (current/total)

func WithFullSync

func WithFullSync(full bool) Option

WithFullSync forces a complete rescan

func WithProgressCallback

func WithProgressCallback(fn func(string)) Option

WithProgressCallback sets a callback for progress updates

func WithVerbose

func WithVerbose(verbose bool) Option

WithVerbose enables verbose output

type Stats

type Stats struct {
	SessionsScanned int
	SessionsIndexed int
	SessionsSkipped int
	TurnsIndexed    int
	ToolUsesIndexed int
	ProjectsFound   int
	Errors          []error
	Duration        time.Duration
}

Stats tracks sync statistics

type Syncer

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

Syncer handles syncing Claude Code data to ccvault

func New

func New(database *db.DB, claudeHome string, opts ...Option) *Syncer

New creates a new Syncer

func (*Syncer) Run

func (s *Syncer) Run() (*Stats, error)

Run performs the sync operation

Jump to

Keyboard shortcuts

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