Versions in this module Expand all Collapse all v0 v0.3.0 Jun 5, 2026 v0.2.4 Jan 14, 2026 v0.2.3 Jun 30, 2025 v0.2.2 Oct 9, 2024 v0.2.1 Oct 1, 2024 Changes in this version + var ErrNoSyncState = fmt.Errorf("no sync state found") + type Config struct + ExcludedFields []string + Postgres PostgresConfig + StripeAPIKey string + type PostgresConfig struct + DBName string + Host string + Password string + Port int + SSLMode string + User string + func (pc PostgresConfig) StoreConfig() postgres.Config + type StripeSync struct + func New(cfg Config) (*StripeSync, error) + func (o *StripeSync) GetCurrentSyncState(ctx context.Context) (SyncState, error) + func (o *StripeSync) InitialLoad(ctx context.Context, purge bool) error + func (o *StripeSync) SyncEvents(ctx context.Context) error + func (o StripeSync) MigrateDB(ctx context.Context) error + type SyncState struct + LastEvent int64 + func (s SyncState) LastEventTime() time.Time + func (s SyncState) MayBeOutdated() bool