toggle menu
flatInvoker
jvm
switch theme
search in API
reaktor-auth
/
dev.shibasis.reaktor.auth.repositories
/
SessionRepository
Session
Repository
jvm
class
SessionRepository
(
database
:
Database
)
:
ExposedAdapter
Members
Constructors
Session
Repository
Link copied to clipboard
jvm
constructor
(
database
:
Database
)
Properties
controller
Link copied to clipboard
jvm
val
controller
:
Database
?
NULL_CONTROLLER
Link copied to clipboard
jvm
val
NULL_CONTROLLER
:
Error
ref
Link copied to clipboard
jvm
val
ref
:
WeakRef
<
Database
>
scope
Link copied to clipboard
jvm
val
scope
:
CoroutineScope
Functions
create
Session
Link copied to clipboard
jvm
fun
createSession
(
userId
:
Long
,
appId
:
Long
,
expiresAt
:
LocalDateTime
)
:
Result
<
UUID
>
delete
Session
Link copied to clipboard
jvm
fun
deleteSession
(
id
:
UUID
)
:
Result
<
Int
>
get
Session
Link copied to clipboard
jvm
fun
getSession
(
id
:
UUID
)
:
Result
<
Session
>
get
Session
Count
Link copied to clipboard
jvm
fun
getSessionCount
(
userId
:
Long
,
appId
:
Long
)
:
Result
<
Long
>
handle
Link copied to clipboard
jvm
open
override
fun
handle
(
event
:
ControllerEvent
)
fun
handle
(
controller
:
Database
,
event
:
ControllerEvent
)
invoke
Link copied to clipboard
jvm
operator
fun
<
Result
>
invoke
(
function
:
Database
.
(
)
->
Result
?
)
:
Result
?
invoke
Suspend
Link copied to clipboard
jvm
suspend
fun
<
Result
>
invokeSuspend
(
function
:
suspend
Database
.
(
)
->
Result
?
)
:
Result
?
null
Controller
Result
Link copied to clipboard
jvm
fun
<
T
>
nullControllerResult
(
)
:
Result
<
T
>