Package edu.duke.cs.osprey.service

Types

Link copied to clipboard
interface ErrorInfo
Link copied to clipboard
class InternalError(msg: String) : ErrorInfo

for when something unexpected happened in the service

Link copied to clipboard
object OspreyService
Link copied to clipboard
data class Point3d(x: Double, y: Double, z: Double)
Link copied to clipboard
class ProcessStreamer(processBuilder: ProcessBuilder)

Reads stdout and stderr from a process and sends the lines back in a ConcurrentLinkedQueue instance.

Link copied to clipboard
class RequestError(msg: String) : ErrorInfo

for when the request is bad

Link copied to clipboard
interface ResponseInfo
Link copied to clipboard
class ServiceException(error: ErrorInfo) : RuntimeException
Link copied to clipboard
sealed class ServiceResponse<R : ResponseInfo>

Functions

Link copied to clipboard
fun Path.deleteFolder()
Link copied to clipboard
fun main(args: Array<String>)
Link copied to clipboard
fun Path.read(): String
Link copied to clipboard
fun Path.readBytes(): ByteArray
Link copied to clipboard
suspend fun ApplicationCall.respond(response: ServiceResponse<*>)
Link copied to clipboard
suspend fun ApplicationCall.respondError(t: Throwable)
Link copied to clipboard
inline fun <R : ResponseInfo> Routing.service(instance: OspreyService.Instance, path: String, crossinline func: (OspreyService.Instance) -> ServiceResponse<R>)
inline fun <T : Any, R : ResponseInfo> Routing.service(instance: OspreyService.Instance, path: String, crossinline func: (OspreyService.Instance, T) -> ServiceResponse<R>)
Link copied to clipboard
fun ProcessBuilder.stream(): ProcessStreamer
Link copied to clipboard
inline fun <R> tempFolder(name: String, block: (Path) -> R): R
Link copied to clipboard
fun ByteArray.write(path: Path)
fun String.write(path: Path)

Properties

Link copied to clipboard
val Path.exists: Boolean