You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
683 B
Go
30 lines
683 B
Go
package server
|
|
|
|
import (
|
|
//"log"
|
|
|
|
_ "context"
|
|
)
|
|
|
|
// will condense into the rm soon enough
|
|
// manager connects to client on start and returns the gRPC connection to make gRPC clients
|
|
|
|
// type ClientManager struct {
|
|
// *Client // gives access to c.Ip c.Id etc
|
|
// Hb time.Duration // used for managing hb timer for client
|
|
// Sig chan bool
|
|
// sync.Mutex
|
|
// }
|
|
|
|
// func NewClientManager(cl *Client) *ClientManager {
|
|
// return &ClientManager{Client: cl}
|
|
// }
|
|
|
|
// func (m *ClientManager) UpdateClient(cl *Client) error {
|
|
// m.Lock()
|
|
// defer m.Unlock()
|
|
// logging.Debug(logging.DClient, "MAN Updating client %v", cl.Id)
|
|
// m.Client = cl
|
|
// return nil
|
|
// }
|