(ctx context.Context, reply string, req *proxy.Request)
| 33 | } |
| 34 | |
| 35 | func (s *Server) endpointList(ctx context.Context, reply string, req *proxy.Request) { |
| 36 | list, err := s.ari.Endpoint().List(nil) |
| 37 | if err != nil { |
| 38 | s.sendError(reply, err) |
| 39 | return |
| 40 | } |
| 41 | |
| 42 | s.publish(reply, &proxy.Response{ |
| 43 | Keys: list, |
| 44 | }) |
| 45 | } |
| 46 | |
| 47 | func (s *Server) endpointListByTech(ctx context.Context, reply string, req *proxy.Request) { |
| 48 | list, err := s.ari.Endpoint().ListByTech(req.EndpointListByTech.Tech, req.Key) |