HeartbeatService

com.alecdorrington.pageloader.tapir.HeartbeatService
class HeartbeatService[F[_]](path: EndpointInput[Unit] = ...) extends HeartbeatApi, TapirService[WebSockets & Fs2Streams[F], F]

A Tapir service for responding to heartbeat messages using a WebSocket.

Responds to every incoming WebSocket message with "ok".

Type parameters

F

The effect type (e.g. Future or IO).

Value parameters

path

The URL path at which the endpoint is mounted.

Attributes

Graph
Supertypes
trait TapirService[WebSockets & Fs2Streams[F], F]
class HeartbeatApi
class Object
trait Matchable
class Any

Members list

Type members

Inherited types

final type Endpoint = ServerEndpoint[WebSockets & Fs2Streams[F], F]

The upper bound on the type of all API endpoints in this service.

The upper bound on the type of all API endpoints in this service.

Attributes

Inherited from:
TapirService

Value members

Concrete methods

final override def api: List[Endpoint]

A list of all endpoints implemented in this service.

A list of all endpoints implemented in this service.

Attributes

Definition Classes
TapirService
final def serverEndpoint: Endpoint

A server endpoint that replies "ok" to every incoming WebSocket message.

A server endpoint that replies "ok" to every incoming WebSocket message.

Attributes

Returns

A server endpoint requiring WebSockets and Fs2Streams capabilities.

Inherited methods

def publicEndpoint[S <: Streams[S]](stream: S): Endpoint[Unit, Unit, Unit, stream.Pipe[String, String], S & WebSockets]

The public endpoint definition.

The public endpoint definition.

Value parameters

stream

The streams capability to use for the WebSocket body.

Attributes

Returns

An endpoint that accepts and produces plain-text WebSocket messages.

Inherited from:
HeartbeatApi

Inherited fields

lazy val all: List[Endpoint]

All endpoints combined from api, docs, and metrics.

All endpoints combined from api, docs, and metrics.

Attributes

Inherited from:
TapirService
lazy val docs: List[Endpoint]

Swagger documentation for this service.

Swagger documentation for this service.

Attributes

Inherited from:
TapirService
val index: Endpoint[Unit, Unit, Unit, String, Any]

Attributes

Inherited from:
HeartbeatApi
lazy val metrics: List[Endpoint]

Prometheus metrics for this service.

Prometheus metrics for this service.

Attributes

Inherited from:
TapirService