syncer

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVRow

type KVRow struct {
	Key     []byte    `db:"key"`
	Value   []byte    `db:"value"`
	Updated time.Time `db:"updated"`
}

type Syncer

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

func New

func New(o SyncerOpts) *Syncer

func (*Syncer) Process

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

func (*Syncer) Run

func (s *Syncer) Run()

func (*Syncer) Stop

func (s *Syncer) Stop()

type SyncerOpts

type SyncerOpts struct {
	Logg  *slog.Logger
	Store *store.Store
}

Jump to

Keyboard shortcuts

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