Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package registry
|
||||
|
||||
import (
|
||||
"relay/device"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Registry struct {
|
||||
Mu sync.Mutex
|
||||
Domains map[string]*device.Device
|
||||
}
|
||||
|
||||
var Global = &Registry{
|
||||
Domains: make(map[string]*device.Device),
|
||||
}
|
||||
Reference in New Issue
Block a user