init
This commit is contained in:
15
domain/client_manager.go
Normal file
15
domain/client_manager.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"github.com/puzpuzpuz/xsync/v4"
|
||||
)
|
||||
|
||||
type ClientManager struct {
|
||||
clients *xsync.Map[string, Client]
|
||||
}
|
||||
|
||||
func NewClientManager() *ClientManager {
|
||||
return &ClientManager{
|
||||
clients: xsync.NewMap[string, Client](),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user