create register agent in agent

This commit is contained in:
2026-04-13 16:37:54 +03:00
parent 8a3ffa98ab
commit 648c2d0a99
8 changed files with 154 additions and 6 deletions
+4
View File
@@ -30,3 +30,7 @@ func (h *HubHandler) Ping(ctx context.Context, _ *emptypb.Empty) (*pb.PongRespon
h.log.Info().Msg("pong request")
return &pb.PongResponse{Pong: "Pong"}, nil
}
func (h *HubHandler) RegisterAgent(ctx context.Context, request *pb.RegisterAgentRequest) (*pb.RegisterAgentResponse, error) {
return &pb.RegisterAgentResponse{AgentId: "12234", HeartbeatIntervalSecond: 2}, nil
}