sync

package
v0.0.0-...-22f70c5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sync provides a way to synchronize items from a source to the server.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedStatusCode = errors.New("unexpected status code")
)

Functions

This section is empty.

Types

type Syncer

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

Syncer synchronizes items from a source to the server.

func NewSyncer

func NewSyncer(s sourcer.Sourcer, c *api.ClientWithResponses, l *slog.Logger) *Syncer

NewSyncer returns a new syncer.

func (*Syncer) Sync

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

Sync synchronizes items from a source to the server.

Jump to

Keyboard shortcuts

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