init
This commit is contained in:
18
domain/client.go
Normal file
18
domain/client.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"go_oxspeak_server/models"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
User models.User
|
||||
|
||||
mu sync.RWMutex
|
||||
}
|
||||
|
||||
func newClient(user models.User) *Client {
|
||||
return &Client{
|
||||
User: user,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user