NodeExecution

org.sigilaris.node.jvm.runtime.NodeExecution
object NodeExecution

Entry point for composing node runtime lifecycle: bootstrap, initialize, and serve.

Attributes

Source
NodeExecution.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def resource[F[_], Services, Layout, A](runtime: Resource[F, NodeRuntime[Services, Layout]], initializer: NodeInitializer[F, Services], serve: Services => Resource[F, A]): Resource[F, A]

Builds a resource that bootstraps the runtime, runs initialization, and then serves using the provided function.

Builds a resource that bootstraps the runtime, runs initialization, and then serves using the provided function.

Type parameters

A

the result type of the serving resource

F

effect type

Layout

the persistent storage layout type

Services

the service bundle type provided by the runtime

Value parameters

initializer

initialization logic to run before serving

runtime

resource that produces a NodeRuntime

serve

function that creates the serving resource from services

Attributes

Returns

a resource managing the full node lifecycle

Source
NodeExecution.scala