Documentation ¶
Index ¶
- Constants
- func NewSource() sdk.Source
- type Config
- type Iterator
- type Source
- func (s *Source) Ack(ctx context.Context, tp sdk.Position) error
- func (s *Source) Configure(_ context.Context, cfg map[string]string) error
- func (s *Source) Open(ctx context.Context, rp sdk.Position) error
- func (s *Source) Parameters() map[string]sdk.Parameter
- func (s *Source) Read(ctx context.Context) (sdk.Record, error)
- func (s *Source) Teardown(ctx context.Context) error
Constants ¶
View Source
const ( // KeyPollingPeriod is the config name for the google-sheets polling period KeyPollingPeriod = "pollingPeriod" KeyDateTimeRenderOption = "dateTimeRenderOption" KeyValueRenderOption = "valueRenderOption" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { config.Config PollingPeriod time.Duration // google sheets data fetch options. // Refer: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchGet#query-parameters DateTimeRenderOption string // values: SERIAL_NUMBER, FORMATTED_STRING // default: SERIAL_NUMBER ValueRenderOption string // values: FORMATTED_VALUE, UNFORMATTED_VALUE, FORMULA// default: FORMATTED_VALUE }
Config represents source configuration with Google-Sheets configurations
type Source ¶
type Source struct { sdk.UnimplementedSource // contains filtered or unexported fields }
Source connector
func (*Source) Ack ¶
Ack is called by the conduit server after the record has been successfully processed by all destination connectors We do not need to send any ack to Google sheets as we poll the Sheets API for data, so there is no data to be ack'd
func (*Source) Parameters ¶
Parameters returns a map of named sdk.Parameters that describe how to configure the Source.
Click to show internal directories.
Click to hide internal directories.