Documentation
¶
Overview ¶
package clients is a wrapper around grpc clients so clients can work with non protobuf structs and handle unmarshaling
Index ¶
- type DestinationClient
- func (c *DestinationClient) Configure(ctx context.Context, s specs.DestinationSpec) error
- func (c *DestinationClient) CreateTables(ctx context.Context, tables []*schema.Table) error
- func (c *DestinationClient) GetExampleConfig(ctx context.Context) (string, error)
- func (c *DestinationClient) Save(ctx context.Context, msg *FetchResultMessage) error
- type FetchResultMessage
- type SourceClient
- func (c *SourceClient) Configure(ctx context.Context, spec specs.SourceSpec) (*gojsonschema.Result, error)
- func (c *SourceClient) Fetch(ctx context.Context, spec specs.SourceSpec, res chan<- *FetchResultMessage) error
- func (c *SourceClient) GetExampleConfig(ctx context.Context) (string, error)
- func (c *SourceClient) GetTables(ctx context.Context) ([]*schema.Table, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationClient ¶
type DestinationClient struct {
// contains filtered or unexported fields
}
func NewDestinationClient ¶
func NewDestinationClient(cc grpc.ClientConnInterface) *DestinationClient
func NewLocalDestinationClient ¶
func NewLocalDestinationClient(p plugins.DestinationPlugin) *DestinationClient
func (*DestinationClient) Configure ¶
func (c *DestinationClient) Configure(ctx context.Context, s specs.DestinationSpec) error
func (*DestinationClient) CreateTables ¶
func (*DestinationClient) GetExampleConfig ¶
func (c *DestinationClient) GetExampleConfig(ctx context.Context) (string, error)
func (*DestinationClient) Save ¶
func (c *DestinationClient) Save(ctx context.Context, msg *FetchResultMessage) error
type FetchResultMessage ¶
type FetchResultMessage struct {
Resource []byte
}
type SourceClient ¶
type SourceClient struct {
// contains filtered or unexported fields
}
func NewSourceClient ¶
func NewSourceClient(cc grpc.ClientConnInterface) *SourceClient
func (*SourceClient) Configure ¶
func (c *SourceClient) Configure(ctx context.Context, spec specs.SourceSpec) (*gojsonschema.Result, error)
func (*SourceClient) Fetch ¶
func (c *SourceClient) Fetch(ctx context.Context, spec specs.SourceSpec, res chan<- *FetchResultMessage) error
func (*SourceClient) GetExampleConfig ¶
func (c *SourceClient) GetExampleConfig(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.