1
0
forked from extern/smegmesh
smegmesh/pkg/automerge/automergefactory.go
2023-10-26 16:53:12 +01:00

11 lines
312 B
Go

package crdt
import "github.com/tim-beatham/wgmesh/pkg/mesh"
type CrdtProviderFactory struct{}
func (f *CrdtProviderFactory) CreateMesh(params *mesh.MeshProviderFactoryParams) (mesh.MeshProvider, error) {
return NewCrdtNodeManager(params.MeshId, params.DevName, params.Port,
*params.Conf, params.Client)
}