Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2026 Changes in this version + type Option func(*Syncer) + func WithHeaders(fn func() map[string]string) Option + func WithOnUpdate(fn func(raw []byte)) Option + func WithReportBuilder(fn func() ([]byte, error)) Option + func WithReportPath(path string) Option + type Syncer struct + func New(transport Transport, pollPath string, interval time.Duration, opts ...Option) *Syncer + func (s *Syncer) Poll(ctx context.Context) (raw []byte, changed bool, err error) + func (s *Syncer) Report(ctx context.Context, body []byte) error + func (s *Syncer) Start() + func (s *Syncer) Stop() + type Transport interface + GetSigned func(ctx context.Context, path string, headers map[string]string) ([]byte, error) + PostSigned func(ctx context.Context, path string, body []byte) ([]byte, error)