Documentation ¶
Index ¶
- Variables
- func Configure(_ context.Context, logger zerolog.Logger, spec []byte, ...) (plugin.Client, error)
- func Plugin() *plugin.Plugin
- func TestConnection(ctx context.Context, _ zerolog.Logger, specBytes []byte) error
- type Client
- func (*Client) Close(_ context.Context) error
- func (c *Client) Logger() *zerolog.Logger
- func (c *Client) OnBeforeSend(_ context.Context, msg message.SyncMessage) (message.SyncMessage, error)
- func (c *Client) OnSyncFinish(_ context.Context) error
- func (c *Client) Sync(ctx context.Context, options plugin.SyncOptions, ...) error
- func (c *Client) Tables(_ context.Context, options plugin.TableOptions) (schema.Tables, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "test" Kind = "source" Team = "cloudquery" Version = "development" )
Functions ¶
Types ¶
type Client ¶
type Client struct { plugin.UnimplementedDestination // contains filtered or unexported fields }
func (*Client) OnBeforeSend ¶
func (c *Client) OnBeforeSend(_ context.Context, msg message.SyncMessage) (message.SyncMessage, error)
OnBeforeSend increases the usage count for every message. If some messages should not be counted, they can be ignored here.
func (*Client) OnSyncFinish ¶
OnSyncFinish is used to ensure the final usage count gets reported
func (*Client) Sync ¶
func (c *Client) Sync(ctx context.Context, options plugin.SyncOptions, res chan<- message.SyncMessage) error
Click to show internal directories.
Click to hide internal directories.