Documentation
¶
Index ¶
- type CassandraSource
- func (c *CassandraSource) Ack(ctx context.Context, msg hermod.Message) error
- func (c *CassandraSource) Close() error
- func (c *CassandraSource) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)
- func (c *CassandraSource) DiscoverDatabases(ctx context.Context) ([]string, error)
- func (c *CassandraSource) DiscoverTables(ctx context.Context) ([]string, error)
- func (c *CassandraSource) GetState() map[string]string
- func (c *CassandraSource) Ping(ctx context.Context) error
- func (c *CassandraSource) Read(ctx context.Context) (hermod.Message, error)
- func (c *CassandraSource) Sample(ctx context.Context, table string) (hermod.Message, error)
- func (c *CassandraSource) SetLogger(logger hermod.Logger)
- func (c *CassandraSource) SetState(state map[string]string)
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 (*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) SetLogger ¶
func (c *CassandraSource) SetLogger(logger hermod.Logger)
func (*CassandraSource) SetState ¶
func (c *CassandraSource) SetState(state map[string]string)
Click to show internal directories.
Click to hide internal directories.