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.

26 lines
611 B
Go

package device
// serves as a server side device coordinator to sync
// assume has a server connection from DM
// STEPS
// 1) client loads web page
// 2) DC pushes what it has to the client
// 3) requests DM for what it doesnt
// 4) DM responds
// 5) DC forwards responses to client
// What can happen
// - Client can push something to client
// - Client requests info
// - If this happens, we can push it to client when we get it. Just need to know it was requests
type DeviceCoordinator struct {
NameChan chan string
StatusChan chan string
}
func ClientSetName() {
// pass client set names to DM
}