Documentation
¶
Index ¶
- Constants
- func NewSource() sdk.Source
- type Config
- type Source
- func (s *Source) Ack(ctx context.Context, pos opencdc.Position) error
- func (s *Source) Configure(ctx context.Context, cfg config.Config) error
- func (s *Source) Open(ctx context.Context, sdkPos opencdc.Position) error
- func (s *Source) Parameters() config.Parameters
- func (s *Source) Read(ctx context.Context) (rec opencdc.Record, err error)
- func (s *Source) Teardown(ctx context.Context) error
Constants ¶
View Source
const ( ConfigClientID = "clientID" ConfigClientSecret = "clientSecret" ConfigInsecureSkipVerify = "insecureSkipVerify" ConfigOauthEndpoint = "oauthEndpoint" ConfigPollingPeriod = "pollingPeriod" ConfigPubsubAddress = "pubsubAddress" ConfigReplayPreset = "replayPreset" ConfigRetryCount = "retryCount" ConfigTopicName = "topicName" ConfigTopicNames = "topicNames" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { config.Config // Deprecated: use `topicNames` instead. TopicName string `json:"topicName"` // TopicNames are the TopicNames the source connector will subscribe to TopicNames []string `json:"topicNames"` // PollingPeriod is the client event polling interval PollingPeriod time.Duration `json:"pollingPeriod" default:"100ms"` // Replay preset for the position the connector is fetching events from, can be latest or default to earliest. ReplayPreset string `json:"replayPreset" default:"earliest" validate:"inclusion=latest|earliest"` }
type Source ¶
type Source struct { sdk.UnimplementedSource // contains filtered or unexported fields }
func (*Source) Parameters ¶
func (s *Source) Parameters() config.Parameters
Click to show internal directories.
Click to hide internal directories.