ServiceHandler

camundala.worker.ServiceHandler
case class ServiceHandler[In <: Product, Out <: Product, ServiceIn <: Product, ServiceOut](httpMethod: Method, apiUri: In => Uri, querySegments: In => Seq[QuerySegmentOrParam], inputMapper: In => Option[ServiceIn], inputHeaders: In => Map[String, String], outputMapper: (ServiceResponse[ServiceOut], In) => Either[ServiceMappingError, Out], defaultServiceOutMock: MockedServiceResponse[ServiceOut], serviceInExample: ServiceIn)(implicit evidence$1: Codec[In], evidence$2: Codec[Out], evidence$3: Encoder[ServiceIn], evidence$4: Decoder[ServiceOut]) extends RunWorkHandler[In, Out]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait RunWorkHandler[In, Out]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type RunnerOutput = EngineRunContext ?=> Either[RunWorkError, Out]

Attributes

Inherited from:
RunWorkHandler

Value members

Concrete methods

def mapBodyOutput(serviceOutput: ServiceOut, headers: Seq[Seq[String]], in: In): Either[ServiceMappingError, Out]
def runWork(inputObject: In): RunnerOutput

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product