This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jetbrains.exposed.sql.Column | |
import org.jetbrains.exposed.sql.ColumnType | |
import org.jetbrains.exposed.sql.Table | |
fun <T : Any> Table.json(name: String, klass: Class<T>): Column<T> = | |
registerColumn(name, JsonTyped(klass)) | |
class JsonTyped<T : Any>(private val klass: Class<T>) : ColumnType() { | |
private val mapper = defaultObjectMapper // Please change this to whatever |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// TARGET='http://localhost:3006/,http://localhost:3006/,http://localhost:3001' go run proxy.go | |
import ( | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
export const URL = 'https://test.k6.io'; | |
export default function () { | |
let res = http.get(URL); | |
check(res, { | |
'resource returns status 200': (r) => r.status === 200, | |
}); |