notification-service
Toggle table of contents
2.8.1
jvm
Platform filter
jvm
Switch theme
Search in API
notification-service
storage
/
io.github.positionpal.notification.storage.groups
/
PostgresGroupsRepository
Postgres
Groups
Repository
class
PostgresGroupsRepository
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
:
GroupsRepository
A
GroupsRepository
adapter for a PostgresSQL database. *
Members
Constructors
Postgres
Groups
Repository
Link copied to clipboard
constructor
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
Functions
add
Member
Link copied to clipboard
open
suspend override
fun
addMember
(
groupId
:
GroupId
,
userId
:
UserId
)
:
Result
<
Unit
>
get
Groups
Of
Link copied to clipboard
open
suspend override
fun
getGroupsOf
(
userId
:
UserId
)
:
Result
<
Set
<
GroupId
>
>
get
Members
Of
Link copied to clipboard
open
suspend override
fun
getMembersOf
(
groupId
:
GroupId
)
:
Result
<
Set
<
UserId
>
>
remove
Member
Link copied to clipboard
open
suspend override
fun
removeMember
(
groupId
:
GroupId
,
userId
:
UserId
)
:
Result
<
Unit
>