diff --git a/share/sql/sql.go b/share/sql/sql.go index e483970..ada193d 100644 --- a/share/sql/sql.go +++ b/share/sql/sql.go @@ -31,12 +31,12 @@ import ( collaboration "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1" provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1" typespb "github.com/cs3org/go-cs3apis/cs3/types/v1beta1" + "github.com/cs3org/reva" "github.com/cs3org/reva/pkg/appctx" conversions "github.com/cs3org/reva/pkg/cbox/utils" "github.com/cs3org/reva/pkg/errtypes" "github.com/cs3org/reva/pkg/rgrpc/todo/pool" "github.com/cs3org/reva/pkg/share" - "github.com/cs3org/reva/pkg/share/manager/registry" "github.com/cs3org/reva/pkg/sharedconf" "github.com/cs3org/reva/pkg/utils" "github.com/cs3org/reva/pkg/utils/cfg" @@ -58,7 +58,14 @@ const ( ) func init() { - registry.Register("sql", New) + reva.RegisterPlugin(mgr{}) +} + +func (mgr) RevaPlugin() reva.PluginInfo { + return reva.PluginInfo{ + ID: "grpc.services.usershareprovider.drivers.sql", + New: New, + } } type config struct {