syncer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoSync

type NoSync struct{}

func (*NoSync) RegisterSyncInProgressCallback

func (c *NoSync) RegisterSyncInProgressCallback(f func(bool))

func (NoSync) SupportsSync

func (c NoSync) SupportsSync() bool

func (NoSync) Sync

func (c NoSync) Sync(ctx context.Context) error

type Syncer

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

func New

func New(sc *serverclient.ServerClient, user types.UserDetails, db database.DatabaseFace, musicDir, imgDir string, slogHandler slog.Handler) Syncer

func (*Syncer) RegisterSyncInProgressCallback

func (s *Syncer) RegisterSyncInProgressCallback(f func(bool))

func (*Syncer) SetDatabase

func (s *Syncer) SetDatabase(db database.DatabaseFace)

func (Syncer) SupportsSync

func (s Syncer) SupportsSync() bool

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context) error

Jump to

Keyboard shortcuts

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