Package

com.soundcloud

twinagle

Permalink

package twinagle

Visibility
  1. Public
  2. All

Type Members

  1. class ClientEndpointBuilder extends AnyRef

    Permalink
  2. case class EndpointMetadata(prefix: String, service: String, rpc: String) extends Product with Serializable

    Permalink

    Endpoint represents a Twirp RPC endpoint.

    Endpoint represents a Twirp RPC endpoint.

    prefix

    prefix of all twirp services. Usually, "/twirp".

    service

    absolute name of the Twirp service.

    rpc

    name of the RPC endpoint within the Twirp service.

  3. sealed abstract case class ErrorCode extends Product with Serializable

    Permalink
  4. class Server extends Service[Request, Response]

    Permalink

    A Twirp-compatible HTTP server/router.

    A Twirp-compatible HTTP server/router. TwinagleExceptions are returned as conformant JSON responses, other exceptions are mapped to twirp internal errors.

    TODO: - extensibility/observability (metrics, logging, tracing, exception tracking, etc) - do (de-)serialization errors need special handling?

  5. class ServerEndpointBuilder extends AnyRef

    Permalink
  6. case class TwinagleException(code: ErrorCode, msg: String, meta: Map[String, String] = Map.empty, cause: Throwable = null) extends RuntimeException with Product with Serializable

    Permalink

Value Members

  1. object ErrorCode extends Serializable

    Permalink

Ungrouped