mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 20:05:17 +03:00
feat: add connect stream to connection manager
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
domainHub "github.com/lorsanstand/HomeOps-Hub/hub/internal/domain"
|
||||
)
|
||||
|
||||
type streamConn interface {
|
||||
type StreamConn interface {
|
||||
Send(request *pb.ServerCommandRequest) error
|
||||
Recv() (*pb.AgentEvent, error)
|
||||
Context() context.Context
|
||||
@@ -17,11 +17,11 @@ type heartbeatStore interface {
|
||||
CreateHeartbeat(ctx context.Context, heartbeat domainHub.CreateHeartbeatModel) error
|
||||
}
|
||||
|
||||
type statusAgent interface {
|
||||
type StatusAgent interface {
|
||||
Offline()
|
||||
Online()
|
||||
}
|
||||
|
||||
type statusNotifier interface {
|
||||
New(AgentID string) statusAgent
|
||||
New(agentID string) StatusAgent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user