MessageCodec

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

Responsible for encoding/decoding multiple named arguments into one value.

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