Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { MigrateTableBatch(ctx context.Context, messages message.WriteMigrateTables) error InsertBatch(ctx context.Context, messages message.WriteInserts) error DeleteStaleBatch(ctx context.Context, messages message.WriteDeleteStales) error }
Client is a client that will receive batches of messages with a mixture of tables.
type IgnoreMigrateTableBatch ¶
type IgnoreMigrateTableBatch struct{}
func (IgnoreMigrateTableBatch) MigrateTableBatch ¶
func (IgnoreMigrateTableBatch) MigrateTableBatch(context.Context, message.WriteMigrateTables) error
type MixedBatchWriter ¶
type MixedBatchWriter struct {
// contains filtered or unexported fields
}
func (*MixedBatchWriter) Write ¶
func (w *MixedBatchWriter) Write(ctx context.Context, msgChan <-chan message.WriteMessage) error
Write starts listening for messages on the msgChan channel and writes them to the client in batches.
type Option ¶
type Option func(writer *MixedBatchWriter)
func WithBatchSize ¶
func WithBatchSizeBytes ¶
func WithBatchTimeout ¶
func WithLogger ¶
type UnimplementedDeleteStaleBatch ¶
type UnimplementedDeleteStaleBatch struct{}
func (UnimplementedDeleteStaleBatch) DeleteStaleBatch ¶
func (UnimplementedDeleteStaleBatch) DeleteStaleBatch(context.Context, message.WriteDeleteStales) error
Click to show internal directories.
Click to hide internal directories.