Merge pull request #452 from travisturner/proto-public-private

split `internal.proto` into `public.proto` and `private.proto`.
This commit is contained in:
Travis Turner 2017-04-17 18:03:51 -05:00 • committed by GitHub
commit acb12881af
5 changed files with 1874 additions and 1674 deletions

View file

@ -7,7 +7,8 @@ import (
"github.com/gogo/protobuf/proto"
)
//go:generate protoc --gofast_out=. internal.proto
//go:generate protoc --gofast_out=. private.proto
//go:generate protoc --gofast_out=. public.proto
type Request proto.Message

1605
internal/private.pb.go Normal file

File diff suppressed because it is too large Load diff

40
internal/private.proto Normal file
View file

@ -0,0 +1,40 @@
syntax = "proto3";
package internal;
message DB {
string TimeQuantum = 1;
string ColumnLabel = 2;
}
message Frame {
string TimeQuantum = 1;
string RowLabel = 2;
bool InverseEnabled = 3;
}
message ImportResponse {
string Err = 1;
}
message BlockDataRequest {
string DB = 1;
string Frame = 2;
string View = 5;
uint64 Slice = 4;
uint64 Block = 3;
}
message BlockDataResponse {
repeated uint64 BitmapIDs = 1;
repeated uint64 ProfileIDs = 2;
}
message Cache {
repeated uint64 BitmapIDs = 1;
}
message MaxSlicesResponse {
map<string, uint64> MaxSlices = 1;
}

File diff suppressed because it is too large Load diff

View file

@ -2,17 +2,6 @@ syntax = "proto3";
package internal;
message DB {
string TimeQuantum = 1;
string ColumnLabel = 2;
}
message Frame {
string TimeQuantum = 1;
string RowLabel = 2;
bool InverseEnabled = 3;
}
message Bitmap {
repeated uint64 Bits = 1;
repeated Attr Attrs = 2;
@ -44,7 +33,7 @@ message Attr {
}
message AttrMap {
repeated Attr Attrs = 1;
repeated Attr Attrs = 1;
}
message QueryRequest {
@ -77,29 +66,3 @@ message ImportRequest {
repeated uint64 ProfileIDs = 5;
repeated int64 Timestamps = 6;
}
message ImportResponse {
string Err = 1;
}
message BlockDataRequest {
string DB = 1;
string Frame = 2;
string View = 5;
uint64 Slice = 4;
uint64 Block = 3;
}
message BlockDataResponse {
repeated uint64 BitmapIDs = 1;
repeated uint64 ProfileIDs = 2;
}
message Cache {
repeated uint64 BitmapIDs = 1;
}
message MaxSlicesResponse {
map<string, uint64> MaxSlices = 1;
}