cassandra

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CassandraSource

type CassandraSource struct {
	// contains filtered or unexported fields
}

CassandraSource implements the hermod.Source interface for Cassandra.

func NewCassandraSource

func NewCassandraSource(hosts []string, tables []string, idField string, pollInterval time.Duration, useCDC bool) *CassandraSource

func (*CassandraSource) 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 (*CassandraSource) Close

func (c *CassandraSource) Close() error

func (*CassandraSource) DiscoverColumns

func (c *CassandraSource) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)

func (*CassandraSource) DiscoverDatabases

func (c *CassandraSource) DiscoverDatabases(ctx context.Context) ([]string, error)

func (*CassandraSource) DiscoverTables

func (c *CassandraSource) DiscoverTables(ctx context.Context) ([]string, error)

func (*CassandraSource) GetState

func (c *CassandraSource) GetState() map[string]string

func (*CassandraSource) Ping

func (c *CassandraSource) Ping(ctx context.Context) error

func (*CassandraSource) Read

func (*CassandraSource) Sample

func (c *CassandraSource) Sample(ctx context.Context, table string) (hermod.Message, error)

func (*CassandraSource) SetLogger

func (c *CassandraSource) SetLogger(logger hermod.Logger)

func (*CassandraSource) SetState

func (c *CassandraSource) SetState(state map[string]string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL