I hereby claim:
- I am holowizor on github.
- I am marekkwiecien (https://keybase.io/marekkwiecien) on keybase.
- I have a public key ASAapYIwdw_2gBYL4bN34yyW5NkixoehPcCWzTt63RwIWAo
To claim this, I am signing this object:
@Suppress("unused") // Referenced in application.conf | |
@kotlin.jvm.JvmOverloads | |
fun Application.module(testing: Boolean = false) { | |
install(ContentNegotiation) { | |
jackson { | |
enable(SerializationFeature.INDENT_OUTPUT) | |
} | |
} | |
routing { |
data class HistoricalEntry(val id: Long?, val entryDate: LocalDateTime, val entryKey: String, val entryValue: String) { | |
companion object { | |
private fun from(row: Row) = HistoricalEntry( | |
row.getLong("id"), | |
row.getLocalDateTime("entry_date"), | |
row.getString("entry_key"), | |
row.getString("entry_value")) | |
fun findAll(client: MySQLPool): Multi<HistoricalEntry> { | |
return client.query("SELECT * FROM historical_entry ORDER BY entry_date ASC").execute() |
data class HistoricalEntry(@Id val id: Long?, val entryDate: LocalDateTime, val entryKey: String, val entryValue: String) | |
interface HistoricalEntryRepository : ReactiveCrudRepository<HistoricalEntry, Long> { | |
@Query("SELECT * FROM historical_entry LIMIT :limit OFFSET :offset ") | |
suspend fun findAll(limit: Int, offset: Int): Flow<HistoricalEntry> | |
} | |
@Configuration | |
class RouterConfig() { | |
@Bean |
service: quarkus-lambda | |
frameworkVersion: ">=1.41.1" | |
provider: | |
name: aws | |
runtime: provided | |
stage: dev | |
region: us-west-2 | |
tracing: |
package com.patternmatch.dev | |
import com.amazonaws.services.lambda.runtime.Context | |
import com.amazonaws.services.lambda.runtime.RequestHandler | |
import javax.enterprise.context.ApplicationScoped | |
import javax.inject.Inject | |
@ApplicationScoped | |
class EchoPrinter { | |
fun echo(s: String?) = "you said $s" |
package com.patternmatch.dev | |
import org.springframework.boot.autoconfigure.SpringBootApplication | |
import org.springframework.boot.runApplication | |
import org.springframework.web.bind.annotation.GetMapping | |
import org.springframework.web.bind.annotation.RestController | |
@SpringBootApplication | |
class BootPlainApplication |
package com.patternmatch.dev | |
import javax.ws.rs.GET | |
import javax.ws.rs.Path | |
import javax.ws.rs.Produces | |
import javax.ws.rs.QueryParam | |
import javax.ws.rs.core.MediaType | |
@Path("/echo") | |
class EchoResource { |
import io.quarkus.gradle.tasks.QuarkusNative | |
group = "com.patternmatch" | |
version = "1.0-SNAPSHOT" | |
plugins { | |
kotlin("jvm") version "1.3.41" | |
id("io.quarkus") version "0.22.0" | |
id("org.jetbrains.kotlin.plugin.allopen") version "1.3.41" | |
} |
I hereby claim:
To claim this, I am signing this object: