Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ gen-supernode:
--grpc-gateway_out=gen \
--grpc-gateway_opt=paths=source_relative \
--openapiv2_out=gen \
proto/supernode/service.proto proto/supernode/status.proto proto/supernode/storage_challenge.proto
proto/supernode/service.proto proto/supernode/status.proto proto/supernode/storage_challenge.proto proto/supernode/self_healing.proto

# Define the paths
SUPERNODE_SRC=supernode/main.go
Expand Down
265 changes: 265 additions & 0 deletions gen/supernode/self_healing.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions gen/supernode/self_healing.swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"swagger": "2.0",
"info": {
"title": "supernode/self_healing.proto",
"version": "version not set"
},
"tags": [
{
"name": "SelfHealingService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"supernodeServeReconstructedArtefactsResponse": {
"type": "object",
"properties": {
"chunk": {
"type": "string",
"format": "byte",
"description": "chunk is a contiguous slice of the reconstructed file bytes. Chunks are\nordered; concatenating chunks across the stream yields the original file\nwhose BLAKE3 must equal op.ResultHash (= action.DataHash recipe)."
},
"totalSize": {
"type": "string",
"format": "uint64",
"description": "total_size is the full file size; populated on the first message and\noptionally repeated. Allows clients to pre-allocate buffers."
},
"isLast": {
"type": "boolean",
"description": "is_last indicates this message carries the final chunk."
}
}
}
}
}
Loading