add ClientConnected hook
parent
959568b822
commit
dee64ddddf
@ -0,0 +1,19 @@
|
||||
package connection
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
Id uuid.UUID
|
||||
Conn net.Conn
|
||||
}
|
||||
|
||||
func NewClient(c net.Conn) *Client {
|
||||
return &Client{
|
||||
Id: uuid.NewV4(),
|
||||
Conn: c,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue