Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountConnectionsMAX ¶
func CountConnectionsMAX() int
Types ¶
type CreateRoomRequest ¶
type GetDeletedRooms ¶ added in v1.0.3
type RequestSetMessage ¶
type RequestSetMessage struct {
Data any `json:"data"`
}
type ResponseGetMessage ¶
type ResponseGetMessage struct {
DataArray []any `json:"dataArray"`
}
type Room ¶
type Room struct {
GameID uuid.UUID
RoomID uuid.UUID
ServerID []uuid.UUID
Users []*User
UpdatedAt time.Time
}
func (*Room) RemoveServerID ¶
func (*Room) RemoveUser ¶
func (*Room) SetServerID ¶
func (*Room) SetUpdatedAt ¶
func (r *Room) SetUpdatedAt()
type Settings ¶
type Settings struct {
ServerType string `json:"serverType"`
ServerPort string `json:"serverPort"`
ConnectionPort string `json:"connectionPort"`
ServerAddress string `json:"serverAddress"`
MaxConnections int `json:"maxConnections"`
MaxRequestPerSecond int `json:"maxRequestPerSecond"`
}
func NewSettings ¶
func NewSettings() (settings Settings)
Click to show internal directories.
Click to hide internal directories.