package
webmonad
Type Members
-
sealed
trait
Control extends AnyRef
-
type
DbState = Map[String, JsValue]
-
case class
Delete(i: Int) extends Control with Product with Serializable
-
case class
Edit(i: Int) extends Control with Product with Serializable
-
case class
JourneyConfig(mode: JourneyMode = SingleStep, allowRestoreState: Boolean = false) extends Product with Serializable
-
sealed
trait
JourneyMode extends AnyRef
-
type
Path = List[String]
-
type
WebInner[A] = IndexedReaderWriterStateT[Future, (JourneyConfig, String, Request[AnyContent]), Path, (Path, DbState), (Path, DbState), A]
-
type
WebMonad[A] = EitherT[WebInner, Result, A]
-
trait
WebMonadController extends Controller with I18nSupport
Value Members
-
object
Add extends Control with Product with Serializable
-
object
Done extends Control with Product with Serializable
-
object
LeapAhead extends JourneyMode with Product with Serializable
-
object
SingleStep extends JourneyMode with Product with Serializable
-
def
cachedFuture[A](cacheId: String)(f: ⇒ Future[A])(implicit format: Format[A], ec: ExecutionContext): WebMonad[A]
-
def
cachedFutureOpt[A](cacheId: String)(f: ⇒ Future[Option[A]])(implicit format: Format[A], ec: ExecutionContext): WebMonad[Option[A]]
-
def
clear(implicit ec: ExecutionContext): WebMonad[Unit]
-
def
clear(key: String)(implicit ec: ExecutionContext): WebMonad[Unit]
-
def
getPath(implicit ec: ExecutionContext): WebMonad[List[String]]
-
def
getRequest(implicit ec: ExecutionContext): WebMonad[Request[AnyContent]]
-
implicit
val
htmlSemigroup: Monoid[Html]
-
lazy val
log: Logger
-
implicit
val
orderedLD: Order[LocalDate]
-
def
read[A](key: String)(implicit reads: Reads[A], ec: ExecutionContext): WebMonad[Option[A]]
-
def
update[A](key: String)(f: (Option[A]) ⇒ Option[A])(implicit format: Format[A], ec: ExecutionContext): WebMonad[Unit]
-
def
webMonad[A](f: (String, Request[AnyContent], Path, DbState) ⇒ Future[(Option[String], Path, DbState, Either[Result, A])])(implicit ec: ExecutionContext): WebMonad[A]
-
def
write[A](key: String, value: A)(implicit writes: Writes[A], ec: ExecutionContext): WebMonad[Unit]
Inherited from AnyRef
Inherited from Any