mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-09-18 15:08:21 +03:00
feat: create heartbeat processing system
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user