Documentation
¶
Index ¶
- type ScyllaDBSource
- func (s *ScyllaDBSource) Ack(ctx context.Context, msg hermod.Message) error
- func (s *ScyllaDBSource) Close() error
- func (s *ScyllaDBSource) DiscoverDatabases(ctx context.Context) ([]string, error)
- func (s *ScyllaDBSource) DiscoverTables(ctx context.Context) ([]string, error)
- func (s *ScyllaDBSource) GetState() map[string]string
- func (s *ScyllaDBSource) Ping(ctx context.Context) error
- func (s *ScyllaDBSource) Read(ctx context.Context) (hermod.Message, error)
- func (s *ScyllaDBSource) Sample(ctx context.Context, table string) (hermod.Message, error)
- func (s *ScyllaDBSource) SetLogger(logger hermod.Logger)
- func (s *ScyllaDBSource) SetState(state map[string]string)
- func (s *ScyllaDBSource) Snapshot(ctx context.Context, tables ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScyllaDBSource ¶
type ScyllaDBSource struct {
// contains filtered or unexported fields
}
ScyllaDBSource implements the hermod.Source interface for ScyllaDB.
func NewScyllaDBSource ¶
func (*ScyllaDBSource) 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 (*ScyllaDBSource) Close ¶
func (s *ScyllaDBSource) Close() error
func (*ScyllaDBSource) DiscoverDatabases ¶
func (s *ScyllaDBSource) DiscoverDatabases(ctx context.Context) ([]string, error)
func (*ScyllaDBSource) DiscoverTables ¶
func (s *ScyllaDBSource) DiscoverTables(ctx context.Context) ([]string, error)
func (*ScyllaDBSource) GetState ¶
func (s *ScyllaDBSource) GetState() map[string]string
func (*ScyllaDBSource) SetLogger ¶
func (s *ScyllaDBSource) SetLogger(logger hermod.Logger)
func (*ScyllaDBSource) SetState ¶
func (s *ScyllaDBSource) SetState(state map[string]string)
Click to show internal directories.
Click to hide internal directories.