mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
29 lines
512 B
Go
29 lines
512 B
Go
package notifier
|
|
|
|
import "github.com/lorsanstand/HomeOps-Hub/hub/internal/service/connection_manager"
|
|
|
|
// Временная заглушка
|
|
type StatusNotifier struct {
|
|
}
|
|
|
|
type Status struct {
|
|
agentID string
|
|
online bool
|
|
}
|
|
|
|
func NewStatusNotifier() *StatusNotifier {
|
|
return &StatusNotifier{}
|
|
}
|
|
|
|
func (s *StatusNotifier) New(agentID string) connection_manager.StatusAgent {
|
|
return &Status{agentID: agentID}
|
|
}
|
|
|
|
func (s *Status) Online() {
|
|
s.online = true
|
|
}
|
|
|
|
func (s *Status) Offline() {
|
|
s.online = false
|
|
}
|