Jooby
Build configuration
val commonMain by getting {
dependencies {
implementation("dev.kilua:kilua-rpc-jooby:$kiluaRpcVersion")
// implementation("dev.kilua:kilua-rpc-jooby-koin:$kiluaRpcVersion")
}
}Service implementation
Service class
class AddressService : IAddressService {
override suspend fun getAddressList(search: String?, sort: Sort) {
return listOf()
}
override suspend fun addAddress(address: Address) {
return Address()
}
override suspend fun updateAddress(id: Int, address: Address) {
return Address()
}
override suspend fun deleteAddress(id: Int) {
return false
}
}Injecting server objects
Blocking code
Application configuration
The main function
Security with Pac4j
Last updated