service

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 15 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL