MessageCodec

kreuzberg.rpc.MessageCodec
See theMessageCodec companion object
trait MessageCodec[T]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def combine(args: (String, T)*): T

Merge multiple attributes into one message.

Merge multiple attributes into one message.

Value parameters

args

mapping from argument name to value

Attributes

def split(combined: T, argNames: Seq[String]): Either[CodecError, Seq[T]]

Splite multiple attributes from one message.

Splite multiple attributes from one message.

Value parameters

argNames

expected argument name

combined

combined message

Attributes

Concrete methods

def decode[A](value: T)(implicit c: Codec[A, T]): Either[CodecError, A]
def encode[A](value: A)(implicit c: Codec[A, T]): T