Provider

poppet.provider.core.Provider
See theProvider companion object
class Provider[F[_], I](peek: F => I, fh: FailureHandler[F], processors: List[MethodProcessor[F, I]])(implicit evidence$1: Monad[F], qcodec: Codec[I, Request[I]], scodec: Codec[Response[I], I]) extends F => I

Type parameters

F

service data kind, for example Future

I

intermediate data type, for example Json

Value parameters

peek

function that can decorate given request -> response function without changing the types. It is mostly used to peek on parsed dtos, for example for logging.

Attributes

Companion
object
Graph
Supertypes
trait I => F[I]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(request: I): F[I]
def service[S](s: S)(implicit processor: ProviderProcessor[F, I, S]): Provider[F, I]

Inherited methods

def andThen[A](g: F[I] => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => I): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1