Files
go-socket/structures.go
T

32 lines
523 B
Go

package main
import (
"time"
"github.com/coder/websocket"
)
type User struct {
MemberGroupsId []uint32
Name string
Password string
Color [3]byte
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
}