Files
ionscale/internal/broker/client.go
T
Johan Siebens 5ad89ff02f initial working version
Signed-off-by: Johan Siebens <johan.siebens@gmail.com>
2022-05-09 21:54:06 +02:00

27 lines
396 B
Go

package broker
import (
"github.com/jsiebens/ionscale/internal/bind"
"tailscale.com/tailcfg"
)
func NewClient(id uint64, channel chan *Signal) Client {
return Client{
id: id,
channel: channel,
}
}
type Client struct {
id uint64
binder bind.Binder
node *tailcfg.Node
compress string
channel chan *Signal
}
func (c *Client) SignalUpdate(s *Signal) {
c.channel <- s
}