korolev

package korolev

Members list

Packages

package korolev.server
package korolev.state
package korolev.util

Type members

Classlikes

abstract class Component[F[_], S, P, E](val initialState: S, val id: String)

Component definition. Every Korolev application is a component. Extent it to declare component in object oriented style.

Component definition. Every Korolev application is a component. Extent it to declare component in object oriented style.

Type parameters

E

Type of events produced by component

F

Control monad

S

State of the component

Value parameters

id

Unique identifier of the component. Use it when you create component declaration dynamically

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Component

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Component.type
final class Context[F[_], S, M] extends Scope[F, S, S, M]

Provides DSLs and effects for application or component

Provides DSLs and effects for application or component

Attributes

Since

0.6.0

Companion
object
Supertypes
class Scope[F, S, S, M]
class Object
trait Matchable
class Any
object Context

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Context.type
trait Extension[F[_], S, M]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Extension

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Extension.type
object Metrics

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Metrics.type
case class Qsid(deviceId: DeviceId, sessionId: SessionId)

Qualified Session Identifier

Qualified Session Identifier

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Router[F[_], S](fromState: PartialFunction[S, PathAndQuery], toState: PartialFunction[PathAndQuery, S => F[S]])

URL routing definition

URL routing definition

Type parameters

F

A async control

S

Type of State

Value parameters

fromState

From current state to Uri

toState

From Uri to state

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Router

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Router.type

Types

type Transition[S] = S => S
type TransitionAsync[F[_], S] = S => F[S]

Value members

Concrete fields

val *&: *&.type
val /: /.type
val :&: :&.type
val :?: :?.type
val :?*: :?*.type
val Root: Root.type