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
@@ -33,6 +33,10 @@ func toGRPCCapability(caps []domain.Capability) []*pb.Capability {
}
func toAgentRegisterDataResponse(response *pb.RegisterAgentResponse) domain.RegisterAgentDataResponse {
if response == nil {
return domain.RegisterAgentDataResponse{}
}
return domain.RegisterAgentDataResponse{
AgentID: response.AgentId,
Heartbeat: int(response.HeartbeatIntervalSecond),