diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-02-23 18:50:31 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-02-23 19:15:02 +0100 |
commit | befb10519daefcbee85950a4e574678fe4b7f402 (patch) | |
tree | b4f95889cfacbdf9909c3ccd11dc1f0f8bedb417 /lib/agent/apiv1.go | |
parent | 38e0baedab9da4516cdc97b526392cbc2c7da67e (diff) |
Added target and terminal support.v1.1.0
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/agent/apiv1.go')
-rw-r--r-- | lib/agent/apiv1.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/agent/apiv1.go b/lib/agent/apiv1.go index 1921f98..3ca84b9 100644 --- a/lib/agent/apiv1.go +++ b/lib/agent/apiv1.go @@ -49,7 +49,7 @@ func NewAPIV1(ctx *Context) *APIService { s.apiRouter.GET("/config", s.getConfig) s.apiRouter.POST("/config", s.setConfig) - s.apiRouter.GET("/browse", s.browseFS) + // s.apiRouter.GET("/browse", s.browseFS) s.apiRouter.GET("/projects", s.getProjects) s.apiRouter.GET("/projects/:id", s.getProject) @@ -118,6 +118,7 @@ func (s *APIService) AddXdsServer(cfg xdsconfig.XDSServerConf) (*XdsServer, erro // Declare passthrough routes s.sdksPassthroughInit(svr) + s.targetsPassthroughInit(svr) // Register callback on Connection svr.ConnectOn(func(server *XdsServer) error { @@ -125,9 +126,9 @@ func (s *APIService) AddXdsServer(cfg xdsconfig.XDSServerConf) (*XdsServer, erro // Add server to list s.xdsServers[server.ID] = svr - // Register event forwarder + // Register events forwarder if err := s.sdksEventsForwardInit(server); err != nil { - s.Log.Errorf("XDS Server %v - sdk event forwarding error: %v", server.ID, err) + s.Log.Errorf("XDS Server %v - sdk events forwarding error: %v", server.ID, err) } // Load projects @@ -164,7 +165,6 @@ func (s *APIService) DelXdsServer(id string) error { s.xdsServers[id].Close() return nil } -} // UpdateXdsServer Update XDS Server configuration settings func (s *APIService) UpdateXdsServer(cfg xaapiv1.ServerCfg) error { |