package
Version:
v0.0.0-...-bede71d
Opens a new window with list of versions in this module.
Published: May 15, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthErrorResponse struct {
Message string `json:"message"`
}
type Chat struct {
From string `json:"from"`
To string `json:"to"`
Message string `json:"message"`
Target *Room `json:"target"`
}
type Claims struct {
ID float64 `json:"id"`
Name string `json:"name"`
jwt.StandardClaims
}
type Client struct {
Conn *websocket.Conn
Username string `json:"username"`
RoomID string `json:"-"`
}
type ErrorResponse struct {
Error string `json:"error"`
Type string `json:"type,omitempty"`
Message string `json:"message,omitempty"`
}
type Response struct {
Status bool `json:"status"`
Message string `json:"message"`
Jwt string `json:"jwt"`
Data interface{} `json:"data"`
}
func (r *Room) RemoveClientFromRoom(username string)
Odayı Sil
type StatusMessage struct {
Message string `json:"message"`
}
Chat Mesajı
type User struct {
Id int `json:"id"`
Name string `json:"name"`
Username string `json:"username"`
Password string `json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.