14 lines
229 B
Go
14 lines
229 B
Go
|
package database
|
||
|
|
||
|
type DB struct {
|
||
|
Clients map[string]*Client `json:"client"`
|
||
|
APs map[string]*AP `json:"ap"`
|
||
|
}
|
||
|
|
||
|
func NewDB() *DB {
|
||
|
return &DB{
|
||
|
Clients: make(map[string]*Client),
|
||
|
APs: make(map[string]*AP),
|
||
|
}
|
||
|
}
|