X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2Fxdsserver%2Fapiv1-events.go;h=e2b013382a4328d0f363b94187b9d2ea76adf20d;hb=4982769bd48b5c67c5eff4d9c6f297fa2a7531a4;hp=0942753a12fc3892c7fd2e862bc3b09f7da87a8f;hpb=285332c351777b74abca638b8b2a2cde3c68edc6;p=src%2Fxds%2Fxds-server.git diff --git a/lib/xdsserver/apiv1-events.go b/lib/xdsserver/apiv1-events.go index 0942753..e2b0133 100644 --- a/lib/xdsserver/apiv1-events.go +++ b/lib/xdsserver/apiv1-events.go @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 "IoT.bzh" + * Copyright (C) 2017-2018 "IoT.bzh" * Author Sebastien Douheret * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -20,9 +20,9 @@ package xdsserver import ( "net/http" + common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git/golib" + "gerrit.automotivelinux.org/gerrit/src/xds/xds-server/lib/xsapiv1" "github.com/gin-gonic/gin" - common "github.com/iotbzh/xds-common/golib" - "github.com/iotbzh/xds-server/lib/xsapiv1" ) // eventsList Registering for events that will be send over a WS @@ -39,6 +39,8 @@ func (s *APIService) eventsRegister(c *gin.Context) { return } + // TODO: add args.Filter support + sess := s.sessions.Get(c) if sess == nil { common.APIError(c, "Unknown sessions")