UserGroupsReader

io.github.positionpal.location.application.groups.UserGroupsReader
trait UserGroupsReader[F[_]]

The reading model projection for groups. It encapsulates the read-side operations for querying and retrieving user groups related information from the underlying store.

Type parameters

F

the effect type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait UserGroupsStore[F, T]

Members list

Value members

Abstract methods

def groupsOf(userId: UserId): F[Set[GroupId]]

Attributes

Returns

the groups of the given userId.

def membersOf(groupId: GroupId): F[Set[User]]

Attributes

Returns

the members of the given groupId.