translate sse notifications
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
ogrpc "github.com/owncloud/ocis/v2/ocis-pkg/service/grpc"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/version"
|
||||
ehsvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/eventhistory/v0"
|
||||
settingssvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/settings/v0"
|
||||
"github.com/owncloud/ocis/v2/services/userlog/pkg/config"
|
||||
"github.com/owncloud/ocis/v2/services/userlog/pkg/config/parser"
|
||||
"github.com/owncloud/ocis/v2/services/userlog/pkg/logging"
|
||||
@@ -102,6 +103,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
hClient := ehsvc.NewEventHistoryService("com.owncloud.api.eventhistory", ogrpc.DefaultClient())
|
||||
vClient := settingssvc.NewValueService("com.owncloud.api.settings", ogrpc.DefaultClient())
|
||||
|
||||
{
|
||||
server, err := http.Server(
|
||||
@@ -113,6 +115,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
http.Consumer(consumer),
|
||||
http.GatewaySelector(gatewaySelector),
|
||||
http.History(hClient),
|
||||
http.Value(vClient),
|
||||
http.RegisteredEvents(_registeredEvents),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user