Files
go-socket/structs.go
T
gitGnome caab2e22bc continue
2026-03-31 20:57:05 +02:00

40 lines
769 B
Go

package main
import (
"time"
"github.com/coder/websocket"
)
type Client struct {
Name string
Pronouns string
PasswordHash string
CreatedAt time.Time
WsConn *websocket.Conn
Id uint32
Groups map[uint32]struct{}
Color [3]uint8
}
type Group struct {
Name string
CreatedAt time.Time
Id uint32
CreatorId uint32
OwnerId uint32
Clients map[uint32]struct{}
Color [3]uint8
EnableClientColors bool
}
type GroupNoMembers struct {
Name string
CreatedAt time.Time
Id uint32
CreatorId uint32
OwnerId uint32
Color [3]uint8
EnableClientsColors bool
}