Package-level declarations

Types

Link copied to clipboard
class DockerDelegate(secret: String, fallback: () -> String?)

Functions

Link copied to clipboard
inline fun <T : Any> Route.delete(path: String = "", crossinline body: suspend PipelineContext<Unit, ApplicationCall>.() -> ApiResult<T>): Route
Link copied to clipboard
fun docker(secret: String, fallback: () -> String? = { null }): DockerDelegate
Link copied to clipboard
inline fun <T : Any> Route.get(path: String = "", crossinline body: suspend PipelineContext<Unit, ApplicationCall>.() -> ApiResult<T>): Route
Link copied to clipboard
fun PipelineContext<Unit, ApplicationCall>.getParameter(name: String): String
Link copied to clipboard
inline fun <R : Any, T : Any> Route.post(path: String = "", crossinline body: suspend PipelineContext<Unit, ApplicationCall>.(R) -> ApiResult<T>): Route
Link copied to clipboard
inline fun <R : Any, T : Any> Route.put(path: String = "", crossinline body: suspend PipelineContext<Unit, ApplicationCall>.(R) -> ApiResult<T>): Route
Link copied to clipboard
inline suspend fun <T : Any> PipelineContext<Unit, ApplicationCall>.respondWithResult(result: ApiResult<T>)

Responds to a call, using the given ApiResult. If an OutOfMemoryError occurs during serialization, it will be reported to the client as a 507 status code.

Link copied to clipboard
fun <T : Any, V> T.toResult(): Result<T, V>
fun <T : Any, U : Any, V> T.toResult(transform: (T) -> U): Result<U, V>