Class: MaquinaStream::ManifestsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MaquinaStream::ManifestsController
- Defined in:
- app/controllers/maquina_stream/manifests_controller.rb
Overview
The snapshot the repair path diffs against: sequence plus one digest per sealed block. A few hundred bytes whatever the message weighs.
Instance Method Summary collapse
-
#show ⇒ Object
GET /maquina_stream/:sid/manifest→{ seq:, cutoff:, rollup:, blocks: [[id, digest], …] }.
Instance Method Details
#show ⇒ Object
GET /maquina_stream/:sid/manifest →
{ seq:, cutoff:, rollup:, blocks: [[id, digest], …] }.
9 10 11 12 13 |
# File 'app/controllers/maquina_stream/manifests_controller.rb', line 9 def show # `full=1` is the cold path: a client whose rollup disagrees with ours # cannot repair from the window alone and asks for everything. render json: Manifest.for(@record, full: params[:full].present?).to_h end |