HBContext

abstract class HBContext(scope: CoroutineScope) : KrchContext<HBContext.HBRootCommand>

Inheritors

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope)

Types

Link copied to clipboard
open inner class HBRootCommand : KrchContext.RootCommand

Properties

Link copied to clipboard
val HBContext.commandMap: CommandMap
Link copied to clipboard
open val configFilePath: Path
Link copied to clipboard
open val configureApplication: Application.() -> Unit? = null
Link copied to clipboard
open val configureHttpClient: HttpClientConfig<*>.() -> Unit
Link copied to clipboard
open val configureJson: JsonBuilder.() -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val ioDispatcher: CoroutineDispatcher
Link copied to clipboard
val json: Json
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope
Link copied to clipboard

Functions

Link copied to clipboard
fun HBContext.configCommand(name: String): KrchContext.Command
Link copied to clipboard
abstract fun configureServer(configuration: ApplicationEngine.Configuration)
Link copied to clipboard
fun HBContext.countCommand(name: String): KrchContext.Command
Link copied to clipboard
fun createHttpClient(block: HttpClientConfig<*>.() -> Unit = {}): HttpClient
Link copied to clipboard
fun HBContext.exportCommand(name: String): KrchContext.Command
Link copied to clipboard
abstract fun getEnv(name: String): String?
Link copied to clipboard
fun HBContext.importCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.importFromFile(path: String, deleteExisting: Boolean = false)
Link copied to clipboard
fun onStop(handler: () -> Unit)
Link copied to clipboard
open fun pathToSink(path: String): Sink
Link copied to clipboard
open fun pathToSource(path: String): Source
Link copied to clipboard
fun HBContext.peerAddCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.peerDeleteCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.peerListCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.peerUpdateCommand(name: String): KrchContext.Command
Link copied to clipboard
fun runInBackground(coroutineContext: CoroutineContext, block: suspend CoroutineScope.() -> Unit)
Link copied to clipboard
fun <T> runInForeground(block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
Link copied to clipboard
fun HBContext.serverCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.syncCommand(name: String): KrchContext.Command
Link copied to clipboard
abstract fun threadName(): String
Link copied to clipboard
fun HBContext.waitCommand(name: String): KrchContext.Command
Link copied to clipboard
suspend fun waitForAllToFinish()
Link copied to clipboard
fun HBContext.watchDataCommand(name: String): KrchContext.Command