1
0
forked from extern/smegmesh

Added sync

This commit is contained in:
Tim Beatham
2023-10-10 20:14:40 +01:00
parent e729c5b181
commit ec87afc235
16 changed files with 794 additions and 41 deletions

20
pkg/sync/syncer.go Normal file
View File

@ -0,0 +1,20 @@
package sync
// Syncer: picks random nodes from the mesh
type Syncer interface {
Sync(meshId string) error
SyncMeshes() error
}
type SyncerImpl struct {
}
// Sync: Sync random nodes
func (s *SyncerImpl) Sync(meshId string) error {
return nil
}
// SyncMeshes:
func (s *SyncerImpl) SyncMeshes() error {
return nil
}