Files
go-socket/structures.go
T

31 lines
495 B
Go

package main
import (
"time"
"github.com/coder/websocket"
)
type User struct {
Name string
Password string
Color string
Id uint32
IsPasswordHashed bool
}
type Client struct {
conn *websocket.Conn
User *User
}
type ChatGroup struct {
Members []User
CreatedAt time.Time
Name string
Id uint32
CreatorId uint32
OwnerId uint32
Color [3]byte
EnableUserColors bool
}