UserGroupsWriter

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

The writing model projection for groups. It encapsulates the write-side operations for saving user groups related information to the underlying store.

Type parameters

F

the effect type

T

the result type of the write operation

Attributes

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

Members list

Value members

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

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