tvl-depot/tvix/store/protos/rpc_blobstore.proto
Florian Klink 2b9330911a feat(tvix/store/protos): add go_package option
Change-Id: I0898b8a0a78e704219da38e5acaabef1e640d4e4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7321
Reviewed-by: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
2022-12-26 11:38:52 +00:00

34 lines
822 B
Protocol Buffer

// SPDX-License-Identifier: MIT
// Copyright © 2022 The Tvix Authors
syntax = "proto3";
package tvix.store.v1;
option go_package = "code.tvl.fyi/tvix/store/protos;storev1";
service BlobService {
rpc Get(GetBlobRequest) returns (GetBlobResponse);
rpc Put(PutBlobRequest) returns (PutBlobResponse);
// TODO(flokli): We can get fancy here, and add methods to retrieve
// [Bao](https://github.com/oconnor663/bao/blob/master/docs/spec.md), and
// then support range requests, but that's left for later.
}
message GetBlobRequest {
// The blake3 digest of the blob requested
bytes digest = 1;
}
message GetBlobResponse {
bytes data = 1;
}
message PutBlobRequest {
bytes data = 1;
}
message PutBlobResponse {
// The blake3 digest of the data that was sent.
bytes digest = 1;
}