Package com.rnett.krosstalk.client
Krosstalk APIs necessary for defining a client. See the module description.
Types
Link copied to clipboard
open class ClientFailureException @InternalKrosstalkApi constructor(methodName: String, cause: Throwable) : KrosstalkException
Content copied to clipboard
A Krosstalk call failed in the client. Happens when a request could not be made.
Link copied to clipboard
class DuplicateScopeException @InternalKrosstalkApi constructor(scope: Scope) : KrosstalkException
Content copied to clipboard
Link copied to clipboard
The interface for a krosstalk client. Have your Krosstalk object implement this to be a client.
Link copied to clipboard
class ServerDefaultInEndpointException(methodName: String, parameter: String) : KrosstalkException
Content copied to clipboard
Link copied to clipboard
class WrongHeadersTypeException @InternalKrosstalkApi constructor(methodName: String, type: KClass<*>) : KrosstalkException
Content copied to clipboard
Link copied to clipboard
class WrongScopeTypeException @InternalKrosstalkApi constructor(scope: Scope, required: KType) : KrosstalkException
Content copied to clipboard
Functions
Link copied to clipboard
operator fun <T : ClientScope<C>, C> T.invoke(clientData: C): ScopeInstance<T>
Content copied to clipboard
Link copied to clipboard
suspend fun krosstalkCall(serverUrl: String? = null, requestHeaders: Headers = headersOf(), vararg scopes: ScopeInstance<*>): Nothing
Content copied to clipboard
suspend fun krosstalkCall(serverUrl: String? = null, requestHeaders: Headers = headersOf(), scopes: Iterable<ScopeInstance<*>> = emptyList()): Nothing
Content copied to clipboard
Placeholder for a Krosstalk client side method. Will be replaced by the compiler plugin.