HotStuffGossipArmeriaAdapter

org.sigilaris.node.jvm.transport.armeria.gossip.HotStuffGossipArmeriaAdapter

Convenience adapter combining transaction gossip and HotStuff bootstrap endpoints.

Attributes

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

Members list

Value members

Concrete methods

def endpoints[F[_]](bootstrap: HotStuffRuntimeBootstrap[F])(using evidence$1: Async[F], ByteEncoder[HotStuffGossipArtifact]): List[ServerEndpoint[Fs2Streams[F], F]]

Creates all server endpoints for both transaction gossip and HotStuff bootstrap protocols.

Creates all server endpoints for both transaction gossip and HotStuff bootstrap protocols.

Type parameters

F

the effect type

Value parameters

bootstrap

the HotStuff runtime bootstrap containing runtime, auth, and consensus services

Attributes

Returns

combined list of gossip and bootstrap server endpoints

Source
HotStuffBootstrapArmeriaAdapter.scala
def finiteEndpoints[F[_]](bootstrap: HotStuffRuntimeBootstrap[F])(using evidence$1: Async[F], ByteEncoder[HotStuffGossipArtifact]): List[ServerEndpoint[Fs2Streams[F], F]]

Creates finite request/response endpoints for the combined HotStuff gossip server.

Creates finite request/response endpoints for the combined HotStuff gossip server.

Attributes

Source
HotStuffBootstrapArmeriaAdapter.scala
def streamEndpoints[F[_]](bootstrap: HotStuffRuntimeBootstrap[F])(using evidence$1: Async[F], ByteEncoder[HotStuffGossipArtifact]): List[ServerEndpoint[Fs2Streams[F], F]]

Creates long-lived streaming endpoints for the combined HotStuff gossip server.

Creates long-lived streaming endpoints for the combined HotStuff gossip server.

Attributes

Source
HotStuffBootstrapArmeriaAdapter.scala