MessageStorage

io.github.positionpal.storage.MessageStorage
trait MessageStorage[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type ErrorDescription = (String, Error | Throwable)

Retrieve the last n messages that where persisted inside a Group

Retrieve the last n messages that where persisted inside a Group

Value parameters

groupID

identifier of the group

n

number of messages that should be retrieved

Attributes

Returns

a F with a Seq of the last n messages of the group

type MessageList = Seq[Message[ClientID, String]]

Value members

Abstract methods

def getLastMessages(groupID: String)(n: Int): F[Either[ErrorDescription, MessageList]]