Package-level declarations

Available in a dev version: 0․11․0-grpc-186

How to configure

Types

Link copied to clipboard
interface GrpcMarshaller<T>
Link copied to clipboard

A marker interface for configurations passed to GrpcMarshallers during encoding and decoding operations.

Link copied to clipboard
Link copied to clipboard

An annotation that marks type parameter that must have a WithGrpcMarshaller annotation.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
expect annotation class WithGrpcMarshaller(val marshaller: KClass<out GrpcMarshaller<*>>)

Specifies a custom GrpcMarshaller for encoding and decoding a message type in gRPC communication.

@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class WithGrpcMarshaller(val marshaller: KClass<out GrpcMarshaller<*>>)

Specifies a custom GrpcMarshaller for encoding and decoding a message type in gRPC communication.

@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class WithGrpcMarshaller(val marshaller: KClass<out GrpcMarshaller<*>>)

Specifies a custom GrpcMarshaller for encoding and decoding a message type in gRPC communication.

Functions

Link copied to clipboard
inline fun <T : Any> grpcMarshallerOf(config: GrpcMarshallerConfig? = null): GrpcMarshaller<T>

Retrieves the GrpcMarshaller for the specified type T.

fun <T : Any> grpcMarshallerOf(messageClass: KClass<T>, config: GrpcMarshallerConfig? = null): GrpcMarshaller<T>

Retrieves the GrpcMarshaller for the specified messageClass.

fun <T : Any> grpcMarshallerOf(messageType: KType, config: GrpcMarshallerConfig? = null): GrpcMarshaller<T>

Retrieves the GrpcMarshaller for the specified messageType.

Link copied to clipboard