izumi.idealingua.runtime.rpc.models.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idealingua-v1-runtime-rpc-scala_3 Show documentation
Show all versions of idealingua-v1-runtime-rpc-scala_3 Show documentation
idealingua-v1-runtime-rpc-scala
package izumi.idealingua.runtime.rpc
import io.circe.Json
// addressing
final case class IRTServiceId(value: String) extends AnyVal {
override def toString: String = s"{service:$value}"
}
final case class IRTMethodName(value: String) extends AnyVal {
override def toString: String = s"{method:$value}"
}
final case class IRTMethodId(service: IRTServiceId, methodId: IRTMethodName) {
override def toString: String = s"${service.value}.${methodId.value}"
}
// dtos
final case class IRTReqBody(value: Product) extends AnyRef
final case class IRTResBody(value: Product) extends AnyRef
final case class IRTMuxResponse(body: IRTResBody, method: IRTMethodId)
final case class IRTMuxRequest(body: IRTReqBody, method: IRTMethodId)
final case class IRTJsonBody(methodId: IRTMethodId, body: Json)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy