mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-21 17:35:16 +03:00
21 lines
424 B
Go
21 lines
424 B
Go
package agent_service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/lorsanstand/HomeOps-Hub/shared/domain"
|
|
)
|
|
|
|
type Collector interface {
|
|
GatherInfoSystem() (domain.HostInfo, []domain.Capability)
|
|
}
|
|
|
|
type Settings interface {
|
|
InsertAgentID(agentID string) error
|
|
GetAgentID() string
|
|
}
|
|
|
|
type HubConnection interface {
|
|
RegisterAgent(ctx context.Context, RegisterData domain.RegisterAgentRequest) (domain.RegisterAgentResponse, error)
|
|
}
|