api-platform-common-domain
api-platform-common-domain
API
uk.gov.hmrc.apiplatform.modules.common
domain
models
Actor
ActorType
ActorType
Actors
AppCollaborator
GatekeeperUser
Process
ScheduledJob
Unknown
ApiContext
ApiIdentifier
ApiIdentifier
ApiVersionNbr
given_Ordering_ApiVersionNbr
ApplicationId
ClientId
Environment
Environment
LaxEmailAddress
StringSyntax
OrganisationId
UserId
services
EnumJsonHelper
InstantJsonFormatter
NoTimeZone
WithTimeZone
ListMapJsonFormatters
LocalDateTimeFormatter
NonEmptyChainFormatters
NonEmptyListFormatters
NonEmptySetFormatters
SimpleEnumJsonFormatting
services
ClockNow
DateTimeHelper
EitherTHelper
EitherTHelper
FutureTimer
SimpleTimer
TimedValue
api-platform-common-domain
/
uk.gov.hmrc.apiplatform.modules.common
/
uk.gov.hmrc.apiplatform.modules.common.services
/
EitherTHelper
EitherTHelper
uk.gov.hmrc.apiplatform.modules.common.services.EitherTHelper
See the
EitherTHelper
companion object
trait
EitherTHelper
[
E
](
using
val
ec
:
ExecutionContext
)
Attributes
Companion
object
Graph
Reset zoom
Hide graph
Show graph
Supertypes
class
Object
trait
Matchable
class
Any
Self type
EitherTHelper
[
E
]
Members list
Clear all
Value members
Concrete methods
def
cond
[
A
](
in
:
=>
Boolean
,
right
:
=>
A
,
left
:
=>
E
):
EitherT
[
Future
,
E
,
A
]
def
fromEither
[
A
](
in
:
Either
[
E
,
A
]):
EitherT
[
Future
,
E
,
A
]
def
fromEitherF
[
A
](
in
:
Future
[
Either
[
E
,
A
]]):
EitherT
[
Future
,
E
,
A
]
def
fromOption
[
A
](
in
:
Option
[
A
],
error
:
=>
E
):
EitherT
[
Future
,
E
,
A
]
def
fromOptionF
[
A
](
in
:
Future
[
Option
[
A
]],
error
:
=>
E
):
EitherT
[
Future
,
E
,
A
]
def
fromOptionM
[
A
](
in
:
Future
[
Option
[
A
]],
error
:
=>
Future
[
E
]):
EitherT
[
Future
,
E
,
A
]
def
fromValidated
[
A
](
in
:
Validated
[
E
,
A
]):
EitherT
[
Future
,
E
,
A
]
def
fromValidatedF
[
A
](
in
:
Future
[
Validated
[
E
,
A
]]):
EitherT
[
Future
,
E
,
A
]
def
leftT
[
R
](
err
:
E
):
EitherT
[
Future
,
E
,
R
]
def
liftF
[
A
](
in
:
Future
[
A
]):
EitherT
[
Future
,
E
,
A
]
def
pure
[
A
](
in
:
A
):
EitherT
[
Future
,
E
,
A
]
Givens
Givens
given
ec
:
ExecutionContext
In this article
Attributes
Members list
Value members
Concrete methods
Givens
Givens