Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replicator ¶
type Replicator struct {
// contains filtered or unexported fields
}
Replicator is the processor for replication tasks
func NewReplicator ¶
func NewReplicator( clusterMetadata cluster.Metadata, clientBean client.Bean, logger log.Logger, metricsHandler metrics.Handler, hostInfo membership.HostInfo, serviceResolver membership.ServiceResolver, namespaceReplicationQueue persistence.NamespaceReplicationQueue, namespaceReplicationTaskExecutor nsreplication.TaskExecutor, matchingClient matchingservice.MatchingServiceClient, namespaceRegistry namespace.Registry, ) *Replicator
NewReplicator creates a new replicator for processing replication tasks
func (*Replicator) WithCustomTaskHandler ¶ added in v1.2.0
func (r *Replicator) WithCustomTaskHandler(handler func(ctx context.Context, task *replicationspb.ReplicationTask) error) *Replicator
WithCustomTaskHandler returns a copy of the Replicator with the custom task handler set.
Click to show internal directories.
Click to hide internal directories.