forked from extern/smegmesh
11 lines
312 B
Go
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)
|
|
}
|