korolev.server

package korolev.server

Members list

Packages

Type members

Classlikes

trait KorolevService[F[_]]

Attributes

Supertypes
class Object
trait Matchable
class Any
case class KorolevServiceConfig[F[_], S, M](stateLoader: F => S, stateStorage: StateStorage[F, S], http: PartialFunction[HttpRequest[F], F[HttpResponse[F]]], router: Router[F, S], rootPath: Path, render: S => Node[Binding[F, S, M]], head: S => Seq[Node[Binding[F, S, M]]], document: S => Node[Binding[F, S, M]], connectionLostWidget: Node[Binding[F, S, M]], maxFormDataEntrySize: Int, extensions: List[Extension[F, S, M]], idGenerator: IdGenerator[F], heartbeatInterval: FiniteDuration, reporter: Reporter, recovery: PartialFunction[Throwable, S => S], sessionIdleTimeout: FiniteDuration)(implicit executionContext: ExecutionContext)

Attributes

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

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object StateLoader

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
final case class WebSocketRequest[F[_]](httpRequest: Request[Stream[F, Bytes]], protocols: Seq[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class WebSocketResponse[F[_]](httpResponse: Response[Stream[F, Bytes]], selectedProtocol: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type HttpRequest[F[_]] = Request[Stream[F, Bytes]]
type HttpResponse[F[_]] = Response[Stream[F, Bytes]]
type StateLoader[F[_], S] = (DeviceId, Head) => F[S]

Value members

Concrete methods

def korolevService[F[_] : Effect, S : StateDeserializer, M](config: KorolevServiceConfig[F, S, M]): KorolevService[F]