feat: create heartbeat processing system

This commit is contained in:
2026-05-11 09:07:32 +03:00
parent 6277523b23
commit 54ed8fd0d2
3 changed files with 139 additions and 0 deletions
@@ -0,0 +1,19 @@
package connection_manager
import (
"context"
pb "github.com/lorsanstand/HomeOps-Hub/api/gen/homeops"
domainHub "github.com/lorsanstand/HomeOps-Hub/hub/internal/domain"
)
type streamConn interface {
Send(request *pb.ServerCommandRequest, err error)
Recv() (*pb.AgentEvent, error)
Context() context.Context
Close() error
}
type heartbeatStore interface {
CreateHeartbeat(ctx context.Context, heartbeat domainHub.CreateHeartbeatModel) error
}