2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-10-31 18:47:25 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "pb";
|
|
|
|
|
|
|
|
package bandwidth;
|
|
|
|
|
|
|
|
import "piecestore.proto";
|
|
|
|
|
|
|
|
service Bandwidth {
|
2018-11-15 19:06:09 +00:00
|
|
|
rpc BandwidthAgreements(piecestoreroutes.RenterBandwidthAllocation) returns (AgreementsSummary) {}
|
2019-03-19 12:56:59 +00:00
|
|
|
rpc Settlement(stream BandwidthSettlementRequest) returns (stream BandwidthSettlementResponse) {}
|
2018-10-31 18:47:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message AgreementsSummary {
|
2018-11-15 19:06:09 +00:00
|
|
|
enum Status {
|
|
|
|
FAIL = 0;
|
|
|
|
OK = 1;
|
2019-01-11 18:15:49 +00:00
|
|
|
REJECTED = 2;
|
2018-11-15 19:06:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Status status = 1;
|
2019-03-19 12:56:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BandwidthSettlementRequest {
|
|
|
|
piecestoreroutes.RenterBandwidthAllocation allocation = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message BandwidthSettlementResponse {
|
|
|
|
string serial_number = 1;
|
|
|
|
AgreementsSummary.Status status = 2;
|
2018-10-31 18:47:25 +00:00
|
|
|
}
|