Help us shape the future of Go! Take the 2026 Go Developer Survey

binimporter

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: ISC Imports: 17 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