service

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 9 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) (err error)

	SetMessage(token string, req types.RequestSetMessage) (err error)
	GetMessages(token string) (msg types.ResponseGetMessage, err error)

	RemoveUser(userID uuid.UUID, reqToken string) (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