Versions in this module Expand all Collapse all v0 v0.0.1 May 16, 2021 Changes in this version + func Init() + func SetUpUpdatesList() error + type HttpHandlerUtils struct + func GetUtils() *HttpHandlerUtils + func (u *HttpHandlerUtils) SetErrorLogger(logger *log.Logger) + func (u *HttpHandlerUtils) SetInfoLogger(logger *log.Logger) + type Requests struct + func GetRequestsInstance() *Requests + func (rq *Requests) AcceptRoomInvitation(w http.ResponseWriter, r *http.Request) + func (rq *Requests) CreateRoom(w http.ResponseWriter, r *http.Request) + func (rq *Requests) DeclineRoomInvitation(w http.ResponseWriter, r *http.Request) + func (rq *Requests) GetGamesList(w http.ResponseWriter, r *http.Request) + func (rq *Requests) InviteToRoom(w http.ResponseWriter, r *http.Request) + func (rq *Requests) LeaveRoom(w http.ResponseWriter, r *http.Request) + func (rq *Requests) LogIn(w http.ResponseWriter, r *http.Request) + func (rq *Requests) LogOut(w http.ResponseWriter, r *http.Request) + func (rq *Requests) SetUserSessionsHandle(us *usersessions.UserSessions) + func (rq *Requests) SignUp(w http.ResponseWriter, r *http.Request) + func (rq *Requests) StartGame(w http.ResponseWriter, r *http.Request) + type UpdateFetcher struct + func GetUpdateFetcherInstance() *UpdateFetcher + func (uf *UpdateFetcher) GetGameStateUpdate(w http.ResponseWriter, r *http.Request) + func (uf *UpdateFetcher) GetNotifications(w http.ResponseWriter, r *http.Request) + func (uf *UpdateFetcher) GetRoomInfoUpdate(w http.ResponseWriter, r *http.Request) + func (uf *UpdateFetcher) SetUserSessionsHandle(us *usersessions.UserSessions) + type Updates struct + type UpdatesHandler struct + func GetUpdateReceiver() *UpdatesHandler + func (uh *UpdatesHandler) HandlerType() string + func (uh *UpdatesHandler) SendRoomInvitation(userId int, lnSessId int, inv clientcomm.RoomInvitation) + func (uh *UpdatesHandler) UpdateGameState(userId int, gameState clientcomm.GameState) + func (uh *UpdatesHandler) UpdateRoomInfo(userId int, update clientcomm.RoomInfo) + type UpdatesList struct