UserGroupsService

io.github.positionpal.location.application.groups.UserGroupsService
See theUserGroupsService companion object
trait UserGroupsService[F[_]]

A service for managing user groups.

Type parameters

F

the effect type

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def addedMember(event: AddedMemberToGroup): F[Unit]

Add a member to a group described by the given event.

Add a member to a group described by the given event.

Attributes

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.

def of(scope: Scope): F[Option[User]]

Attributes

Returns

the User in the given scope with all the details if it exists or an empty optional.

def removeMember(event: RemovedMemberToGroup): F[Unit]

Remove a user from a group described by the given event.

Remove a user from a group described by the given event.

Attributes