Package-level declarations

Types

Link copied to clipboard
@Serializable
data class PeerFlags(val enabled: Boolean, val push: Boolean, val pull: Boolean)
Link copied to clipboard
class PeerSession(context: HBContext, val peer: Peer)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun clientSession(context: HBContext, peer: Peer, request: HttpRequestBuilder.() -> Unit = {}, block: suspend DefaultClientWebSocketSession.() -> Unit)
Link copied to clipboard
suspend fun clientSyncToPeer(context: HBContext, peerName: String, once: Boolean = false, maxListSize: Int = 10, pollForChangesDuration: Duration = Duration.ZERO)
Link copied to clipboard
fun CommandMap.commands(context: HBContext): CommandMap
Link copied to clipboard
fun HBContext.configCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.exportCommand(name: String): KrchContext.Command
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 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
Link copied to clipboard
suspend fun DefaultWebSocketServerSession.serverSyncHandler(initialMessage: Message.Sync)
Link copied to clipboard
fun HBContext.syncCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.waitCommand(name: String): KrchContext.Command
Link copied to clipboard
fun HBContext.watchDataCommand(name: String): KrchContext.Command
Link copied to clipboard
suspend fun withPeer(context: HBContext, peerName: String, block: suspend PeerSession.() -> Unit)