feat: create initial agent for localapi

This commit is contained in:
Aarnav Tale
2024-12-30 13:48:49 +05:30
parent 6156d78907
commit 719d7a5e76
10 changed files with 675 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package hpagent
import (
"tailscale.com/tailcfg"
)
// Sends the status to the Headplane master
func (s *Socket) SendStatus(status map[string]*tailcfg.HostinfoView) error {
err := s.WriteJSON(status)
return err
}