register_cluster.go raw
1 //go:build !(js && wasm)
2
3 package sync
4
5 import (
6 "context"
7
8 "next.orly.dev/pkg/database"
9 )
10
11 func init() {
12 // Register the Cluster driver with the driver registry.
13 RegisterDriver("cluster", "Cluster-based replication", clusterFactory)
14 }
15
16 // clusterFactory creates a new Cluster sync service instance.
17 func clusterFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (Service, error) {
18 // Cluster sync is implemented as a standalone service
19 // The actual implementation would create a cluster.Manager here
20 return &stubService{name: "cluster"}, nil
21 }
22