Files
go-socket/structures.go
T
2026-03-15 17:59:22 +01:00

32 lines
523 B
Go

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