dbsync

package
v2026.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("dbsync",
	fx.Provide(
		New,
	),
)

Functions

func NewDB

func NewDB(p DBParams) (*sql.DB, error)

Types

type DBParams

type DBParams struct {
	fx.In

	LC fx.Lifecycle

	Config *dbsyncconfig.Config
}

type Params

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger *zap.Logger
	Config *dbsyncconfig.Config
	DB     *sql.DB
	State  *dbsyncconfig.State
}

type Result

type Result struct {
	fx.Out

	Sync *Sync
}

type Sync

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

func New

func New(p Params) (*Sync, error)

func (*Sync) RunStream

func (s *Sync) RunStream(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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