Documentation ¶
Index ¶
- func New(ctx context.Context, logger zerolog.Logger, specBytes []byte, ...) (plugin.Client, error)
- type AuthHandler
- type Client
- func (c *Client) Close(context.Context) error
- func (c *Client) DeleteRecord(ctx context.Context, msg *message.WriteDeleteRecord) error
- func (c *Client) DeleteStale(ctx context.Context, msg *message.WriteDeleteStale) error
- func (c *Client) Insert(ctx context.Context, msg *message.WriteInsert) error
- func (c *Client) MigrateTable(ctx context.Context, msg *message.WriteMigrateTable) error
- func (c *Client) Read(ctx context.Context, table *schema.Table, res chan<- arrow.Record) error
- func (c *Client) Write(ctx context.Context, messages <-chan message.WriteMessage) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
AuthHandler is a simple auth handler that sends a token and reads a token
func NewAuthHandler ¶
func NewAuthHandler(handshake, token string) *AuthHandler
NewAuthHandler creates a new auth handler
func (*AuthHandler) Authenticate ¶
Authenticate sends the auth token and reads the token
type Client ¶
type Client struct { plugin.UnimplementedSource // contains filtered or unexported fields }
Client is the client for the Apache Arrow destination
func (*Client) DeleteRecord ¶
DeleteRecord is called when a record is deleted
func (*Client) DeleteStale ¶
DeleteStale is called when a record is deleted
func (*Client) MigrateTable ¶
MigrateTable is called when a table is created or updated
type Spec ¶
type Spec struct { Addr string `json:"addr,omitempty"` Handshake string `json:"handshake,omitempty"` Token string `json:"token,omitempty"` CloseTimeout configtype.Duration `json:"close_timeout,omitempty"` MaxCallRecvMsgSize *int `json:"max_call_recv_msg_size,omitempty"` MaxCallSendMsgSize *int `json:"max_call_send_msg_size,omitempty"` TlsEnabled bool `json:"tls_enabled,omitempty"` TlsServerName string `json:"tls_server_name,omitempty"` TlsInsecureSkipVerify bool `json:"tls_insecure_skip_verify,omitempty"` }
Spec is the configuration for the Arrow Flight client.
func (*Spec) SetDefaults ¶ added in v1.0.3
func (s *Spec) SetDefaults()
Click to show internal directories.
Click to hide internal directories.