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) error
GetUsersAndMessage(ds connection.DataSender, clientInfo tokentype.Info, req []byte) (users []types.User, msg []byte, err error)
RemoveUser(clientInfo tokentype.Info, userID uuid.UUID) (err error)
ParseToken(token string) (info tokentype.Info, err error)
SetNewConnection(clientInfo tokentype.Info, ds connection.DataSender) (err error)
}
func NewService ¶
func NewService(token tokengenerator.TokenGenerator, storage memoryDB.IMemoryDB, logger zerolog.Logger) Service
Click to show internal directories.
Click to hide internal directories.