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.4
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)
type User ¶
type User struct { ID uuid.UUID Connection connection.DataSender }
Click to show internal directories.
Click to hide internal directories.