ServiceWorkerDsl

camundala.worker.ServiceWorkerDsl
trait ServiceWorkerDsl[In <: Product, Out <: Product, ServiceIn, ServiceOut](implicit evidence$1: Codec[In], evidence$2: Codec[Out], evidence$3: Encoder[ServiceIn], evidence$4: Decoder[ServiceOut], evidence$5: ClassTag[ServiceOut]) extends WorkerDsl[In, Out]

Attributes

Graph
Supertypes
trait WorkerDsl[In, Out]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

protected def apiUri(in: In): Uri
protected def serviceTask: ServiceTask[In, Out, ServiceIn, ServiceOut]

Concrete methods

protected def inputHeaders(in: In): Map[String, String]
protected def inputMapper(in: In): Option[ServiceIn]
protected def method: Method
protected def outputMapper(serviceOut: ServiceResponse[ServiceOut], in: In): Either[ServiceMappingError, Out]
protected def queryKeyValues(kvs: (String, Any)*): Seq[QuerySegmentOrParam]
protected def queryKeys(ks: String*): Seq[QuerySegmentOrParam]
protected def querySegments(in: In): Seq[QuerySegmentOrParam]
protected def queryValues(vs: Any*): Seq[QuerySegmentOrParam]
final def runWork(inputObject: In): Either[CustomError, Out]

Run the Work is done by the handler. If you want a different behavior, you need to use the CustomWorkerDsl

Run the Work is done by the handler. If you want a different behavior, you need to use the CustomWorkerDsl

Attributes

Inherited methods

def runWorkFromWorker(in: In)(using EngineRunContext): Option[Either[RunWorkError, Out]]

Attributes

Inherited from:
WorkerDsl
def runWorkFromWorkerUnsafe(in: In)(using EngineRunContext): Either[RunWorkError, Out]

Attributes

Inherited from:
WorkerDsl
def topic: String

Attributes

Inherited from:
WorkerDsl
def validate(in: In): Either[ValidatorError, In]

Attributes

Inherited from:
ValidateDsl (hidden)

Inherited and Abstract methods

protected def engineContext: EngineContext

Attributes

Inherited from:
WorkerDsl
protected def logger: WorkerLogger

Attributes

Inherited from:
WorkerDsl

Concrete fields

lazy val worker: ServiceWorker[In, Out, ServiceIn, ServiceOut]

Extensions

Inherited extensions

extension [T](option: Option[T])
def toEither[E <: CamundalaWorkerError](error: E): Either[E, T]

Attributes

Inherited from:
WorkerDsl