binimporter

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinImporter

func NewBinImporter(appCtx context.Context, opts *connectors.Options, name string, config map[string]string) (importer.Importer, error)

Types

type BinImporter

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

func (*BinImporter) Close

func (p *BinImporter) Close(ctx context.Context) error

func (*BinImporter) Flags

func (p *BinImporter) Flags() location.Flags

func (*BinImporter) Import

func (p *BinImporter) Import(ctx context.Context, records chan<- *connectors.Record, results <-chan *connectors.Result) error

Import runs pg_basebackup in tar-to-stdout mode and emits one record per tar entry. The results channel is used to pace reading: the loop waits for an ack after each record so the caller fully consumes the entry before tr.Next() advances the stream.

func (*BinImporter) Origin

func (p *BinImporter) Origin() string

func (*BinImporter) Ping

func (p *BinImporter) Ping(ctx context.Context) error

Ping verifies that the PostgreSQL server is reachable.

func (*BinImporter) Root

func (p *BinImporter) Root() string

func (*BinImporter) Type

func (p *BinImporter) Type() string

Jump to

Keyboard shortcuts

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