impl client and server for KeyValueRepo
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package com.insanusmokrassar.postssystem.utils.repos.ktor.common.key_value
|
||||
|
||||
const val keyParameterName = "key"
|
||||
const val reversedParameterName = "reversed"
|
@@ -0,0 +1,9 @@
|
||||
package com.insanusmokrassar.postssystem.utils.repos.ktor.common.key_value
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class KeyValuePostObject<K, V> (
|
||||
val key: K,
|
||||
val value: V,
|
||||
)
|
@@ -0,0 +1,12 @@
|
||||
package com.insanusmokrassar.postssystem.utils.repos.ktor.common.key_value
|
||||
|
||||
const val getRoute = "get"
|
||||
const val valuesRoute = "values"
|
||||
const val keysRoute = "keys"
|
||||
const val containsRoute = "contains"
|
||||
const val countRoute = "count"
|
||||
|
||||
const val onNewValueRoute = "onNewValue"
|
||||
const val onValueRemovedRoute = "onValueRemoved"
|
||||
const val setRoute = "set"
|
||||
const val unsetRoute = "unset"
|
Reference in New Issue
Block a user