ServiceWorkerDsl

orchescala.worker.ServiceWorkerDsl
trait ServiceWorkerDsl[In <: Product, Out <: Product, ServiceIn, ServiceOut](using 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

Type members

Inherited types

type RunWorkOutput = Either[CustomError, Out]

Attributes

Inherited from:
RunWorkDsl (hidden)

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 override 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

Definition Classes
RunWorkDsl

Inherited methods

protected def errorHandled(error: WorkerError, handledErrors: Seq[String]): Boolean

Attributes

Inherited from:
WorkerDsl
protected def filteredOutput(outputVariables: Seq[String], allOutputs: Map[String, Any]): Map[String, Any]

Attributes

Inherited from:
WorkerDsl
protected def regexMatchesAll(errorHandled: Boolean, error: WorkerError, regexHandledErrors: Seq[String]): Boolean

Attributes

Inherited from:
WorkerDsl
def runWorkFromWorker(in: In)(using EngineRunContext): ZIO[SttpClientBackend, WorkerError, Out | NoOutput]

Attributes

Inherited from:
WorkerDsl

Attributes

Inherited from:
WorkerDsl
protected def runWorkZIO(inputObject: In): () ?=> Out

Attributes

Inherited from:
RunWorkDsl (hidden)
def timeout: Duration

Attributes

Inherited from:
WorkerDsl
def topic: String

Attributes

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

Attributes

Inherited from:
ValidateDsl (hidden)

Concrete fields

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

Extensions

Inherited extensions

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

Attributes

Inherited from:
WorkerDsl
def toIO[E <: WorkerError](error: E): IO[E, T]

Attributes

Inherited from:
WorkerDsl