Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer holds a temporary changelog Buffer
type Changelog ¶
type Changelog interface {
ReadAll(ctx context.Context) ([]*data.Record, error)
Put(ctx context.Context, record *data.Record) error
PutAll(ctx context.Context, record []*data.Record) error
Delete(ctx context.Context, record *data.Record) error
DeleteAll(ctx context.Context, record []*data.Record) error
Close()
}
func NewMockChangelog ¶
func NewStateChangelog ¶
func NewStateChangelog(config *StateChangelogConfig, opts ...Options) (Changelog, error)
type ReplicaManager ¶
type ReplicaManager struct {
// contains filtered or unexported fields
}
func NewReplicaManager ¶
func NewReplicaManager(conf *ReplicaManagerConf) (*ReplicaManager, error)
func (*ReplicaManager) GetCache ¶
func (m *ReplicaManager) GetCache(tp consumer.TopicPartition) (*cache, error)
func (*ReplicaManager) StartReplicas ¶
func (m *ReplicaManager) StartReplicas(tps []consumer.TopicPartition) error
func (*ReplicaManager) StopReplicas ¶
func (m *ReplicaManager) StopReplicas(tps []consumer.TopicPartition) error
type ReplicaManagerConf ¶
type ReplicaManagerConf struct {
Consumer consumer.PartitionConsumerBuilder
Backend backend.Builder
Logger log.Logger
Tps []consumer.TopicPartition
OffsetManager offsets.Manager
}
type StateChangelogConfig ¶
Click to show internal directories.
Click to hide internal directories.