plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package plugin is a proof that the door is open: it implements a source and a sink entirely outside internal/, importing only the public contracts (source, sink, driver, core, change, position, spec) and registering them with the driver registry. The fake_test drives the collapsed runner end-to-end against these two drivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

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

Sink records committed batches in the shared records singleton.

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) Position

func (s *Sink) Position(context.Context, core.TableRef) (string, error)

func (*Sink) Properties

func (s *Sink) Properties(context.Context, core.TableRef) (map[string]string, error)

func (*Sink) SetProperties

func (s *Sink) SetProperties(context.Context, core.TableRef, map[string]string) error

type Source

type Source struct{}

Source is a stream-only fake: it emits seedRows and holds the stream open until the pipeline cancels it.

func (Source) InitialPosition

func (Source) InitialPosition(context.Context) (position.Position, error)

func (Source) Introspect

func (Source) Open

func (Source) Open(_ context.Context, refs []source.TableRef) (source.Reader, error)

func (Source) ParsePosition

func (Source) ParsePosition(s string) (position.Position, error)

Directories

Path Synopsis
Package main is an example Go plugin that registers a source and sink via the driver registry.
Package main is an example Go plugin that registers a source and sink via the driver registry.

Jump to

Keyboard shortcuts

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