Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
GetConnectionsNum() (countConn int, exists bool)
CreateRoom(token string, configs types.GameConfigs) error
SetRoomNotifyServer(token string, id uuid.UUID, url string) (err error)
NotifyAllServers(clientInfo tokentype.Info, req types.Request) (err error)
GetUsersAndMessage(ds connection.DataSender, clientInfo tokentype.Info, req types.Request) (users []entities.User, msg []byte, err error)
RemoveUser(token string, userID uuid.UUID) (err error)
ParseToken(token string) (info tokentype.Info, err error)
SetNewConnection(clientInfo tokentype.Info, ds connection.DataSender) (err error)
GetGameResults(token string) (results []types.GameConfigResults, err error)
}
func NewService ¶
func NewService(token tokengenerator.TokenGenerator, storage memoryDB.IMemoryDB, gameConfigService configsService.GameConfigsService, logger zerolog.Logger) Service
Click to show internal directories.
Click to hide internal directories.