Documentation
¶
Index ¶
- type DB2Source
- func (d *DB2Source) Ack(ctx context.Context, msg hermod.Message) error
- func (d *DB2Source) Close() error
- func (d *DB2Source) DiscoverDatabases(ctx context.Context) ([]string, error)
- func (d *DB2Source) DiscoverTables(ctx context.Context) ([]string, error)
- func (d *DB2Source) GetState() map[string]string
- func (d *DB2Source) Ping(ctx context.Context) error
- func (d *DB2Source) Read(ctx context.Context) (hermod.Message, error)
- func (d *DB2Source) Sample(ctx context.Context, table string) (hermod.Message, error)
- func (d *DB2Source) SetLogger(logger hermod.Logger)
- func (d *DB2Source) SetState(state map[string]string)
- func (d *DB2Source) Snapshot(ctx context.Context, tables ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB2Source ¶
type DB2Source struct {
// contains filtered or unexported fields
}
DB2Source implements the hermod.Source interface for DB2. Note: Requires a DB2 driver like github.com/ibmdb/go_ibm_db to be registered.
func NewDB2Source ¶
func (*DB2Source) Ack ¶
Ack moves the persisted cursor to the acknowledged row. It must not move on read: GetState is the engine's persistence contract, so a cursor advanced when a row is handed out is already past rows still in flight, and a crash before the sinks wrote them erases them from the resume.
func (*DB2Source) DiscoverDatabases ¶
func (*DB2Source) DiscoverTables ¶
Click to show internal directories.
Click to hide internal directories.