19 lines
279 B
Go
19 lines
279 B
Go
package main
|
|
|
|
import "github.com/coder/websocket"
|
|
|
|
type User struct {
|
|
Id uint32
|
|
Name string
|
|
Password string
|
|
Color string
|
|
IsPasswordHashed bool
|
|
}
|
|
type Client struct {
|
|
conn *websocket.Conn
|
|
User *User
|
|
}
|
|
|
|
type ChatGroup struct {
|
|
}
|