You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
621 B
21 lines
621 B
//go:build !(js && wasm) |
|
|
|
package sync |
|
|
|
import ( |
|
"context" |
|
|
|
"next.orly.dev/pkg/database" |
|
) |
|
|
|
func init() { |
|
// Register the Distributed driver with the driver registry. |
|
RegisterDriver("distributed", "Distributed multi-node synchronization", distributedFactory) |
|
} |
|
|
|
// distributedFactory creates a new Distributed sync service instance. |
|
func distributedFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (Service, error) { |
|
// Distributed sync is implemented as a standalone service |
|
// The actual implementation would create a distributed.Manager here |
|
return &stubService{name: "distributed"}, nil |
|
}
|
|
|