Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReceiverQueueSize = 5000 AckTrackerSize = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSource ¶
func (*BaseSource) Capture ¶
func (b *BaseSource) Capture(cp cursor.Checkpoint) (changes chan Change, err error)
func (*BaseSource) Commit ¶
func (b *BaseSource) Commit(cp cursor.Checkpoint)
func (*BaseSource) Error ¶
func (b *BaseSource) Error() error
func (*BaseSource) Stop ¶
func (b *BaseSource) Stop() error
type PGXSource ¶
type PGXSource struct { BaseSource SetupConnStr string ReplConnStr string ReplSlot string CreateSlot bool CreatePublication bool StartLSN string DecodePlugin string // contains filtered or unexported fields }
func (*PGXSource) Capture ¶
func (p *PGXSource) Capture(cp cursor.Checkpoint) (changes chan Change, err error)
func (*PGXSource) Commit ¶
func (p *PGXSource) Commit(cp cursor.Checkpoint)
type PulsarConsumerSource ¶
type PulsarConsumerSource struct { BaseSource PulsarOption pulsar.ClientOptions PulsarTopic string PulsarSubscription string PulsarReplicateState bool PulsarMaxReconnect *uint // contains filtered or unexported fields }
func (*PulsarConsumerSource) Capture ¶
func (p *PulsarConsumerSource) Capture(cp cursor.Checkpoint) (changes chan Change, err error)
func (*PulsarConsumerSource) Commit ¶
func (p *PulsarConsumerSource) Commit(cp cursor.Checkpoint)
func (*PulsarConsumerSource) Requeue ¶
func (p *PulsarConsumerSource) Requeue(cp cursor.Checkpoint, reason string)
type PulsarReaderSource ¶
type PulsarReaderSource struct { BaseSource PulsarOption pulsar.ClientOptions PulsarTopic string // contains filtered or unexported fields }
func (*PulsarReaderSource) Capture ¶
func (p *PulsarReaderSource) Capture(cp cursor.Checkpoint) (changes chan Change, err error)
func (*PulsarReaderSource) Commit ¶
func (p *PulsarReaderSource) Commit(cp cursor.Checkpoint)
type RequeueSource ¶
type RequeueSource interface { Source Requeue(cp cursor.Checkpoint, reason string) }
type Source ¶
type Source interface { Capture(cp cursor.Checkpoint) (changes chan Change, err error) Commit(cp cursor.Checkpoint) Error() error Stop() error }
Click to show internal directories.
Click to hide internal directories.