plugin

package
v0.0.0-...-cdb1b6b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Team    = "example-team"
	Kind    = "source"
	Name    = "example"
	Version = "development"
)

These variables are used by the `package` command and for checking usage limits.

Functions

func Configure

func Configure(_ context.Context, logger zerolog.Logger, spec []byte, opts plugin.NewClientOptions) (plugin.Client, error)

func Plugin

func Plugin() *plugin.Plugin

func TestConnection

func TestConnection(_ context.Context, _ zerolog.Logger, spec []byte) error

Types

type Client

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

func (*Client) Close

func (*Client) Close(_ context.Context) error

func (*Client) Logger

func (c *Client) Logger() *zerolog.Logger

func (*Client) Read

func (*Client) Read(context.Context, *schema.Table, chan<- arrow.Record) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context, options plugin.SyncOptions, res chan<- message.SyncMessage) error

func (*Client) Tables

func (c *Client) Tables(_ context.Context, options plugin.TableOptions) (schema.Tables, error)

func (*Client) Write

func (*Client) Write(context.Context, <-chan message.WriteMessage) error

Jump to

Keyboard shortcuts

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