Implement target selection, autodiscovery via aggregator, implement listTargets
This commit is contained in:
@@ -56,6 +56,12 @@ func (srv *Server) Trend(_ context.Context, req *pb.TrendRequest) (*pb.TrendResp
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (srv *Server) ListTargets(_ context.Context, _ *pb.ListTargetsRequest) (*pb.ListTargetsResponse, error) {
|
||||
return &pb.ListTargetsResponse{
|
||||
Targets: []*pb.TargetInfo{{Name: srv.source, Addr: ""}},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (srv *Server) StreamSnapshots(req *pb.SnapshotRequest, stream grpc.ServerStreamingServer[pb.Snapshot]) error {
|
||||
ch := srv.store.Subscribe()
|
||||
defer srv.store.Unsubscribe(ch)
|
||||
|
||||
Reference in New Issue
Block a user