service

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 10 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, request types.CreateRoomRequest) 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)
	GetDeletedRooms(token string, ids []types.GetDeletedRooms) (deletedIds []types.GetDeletedRooms, err error)
}

func NewService

func NewService(token tokengenerator.TokenGenerator, storage memoryDB.IMemoryDB, logger zerolog.Logger) Service

Jump to

Keyboard shortcuts

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