JetstreamInterface

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getBlock(params: GetBlockQueryParams): ByteArray

Download one zstd-compressed block from a sealed archive segment.

Link copied to clipboard
abstract suspend fun getSegment(params: GetSegmentQueryParams): ByteArray

Download a complete sealed archive segment.

Link copied to clipboard
abstract suspend fun listSegments(params: ListSegmentsQueryParams = ListSegmentsQueryParams()): ListSegmentsResponse

List sealed archive segments.

Link copied to clipboard
abstract suspend fun planSnapshot(request: PlanSnapshotRequest = PlanSnapshotRequest()): PlanSnapshotResponse

Plan a point-in-time archive snapshot.

Link copied to clipboard
abstract suspend fun subscribe(params: SubscribeQueryParams): Flow<SubscribeMessage>

Subscribe to a Jetstream firehose.

abstract suspend fun subscribe(params: SubscribeQueryParams, block: suspend SubscriptionContext.() -> Unit)

Subscribe to a Jetstream firehose with the given params.