UserGroupsStore

io.github.positionpal.location.application.groups.UserGroupsStore
trait UserGroupsStore[F[_], T] extends UserGroupsReader[F], UserGroupsWriter[F, T]

A store for user groups related information, supporting both read and write operations.

Attributes

Graph
Supertypes
trait UserGroupsWriter[F, T]
trait UserGroupsReader[F]
class Object
trait Matchable
class Any

Members list

Value members

Inherited and Abstract methods

def addMember(groupId: GroupId, user: User): F[T]

Add the given user to the given groupId.

Add the given user to the given groupId.

Attributes

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

Attributes

Returns

the groups of the given userId.

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

Attributes

Returns

the members of the given groupId.

Inherited from:
UserGroupsReader
def removeMember(groupId: GroupId, userId: UserId): F[T]

Remove the user with the given userId from the given groupId.

Remove the user with the given userId from the given groupId.

Attributes

Inherited from:
UserGroupsWriter