feat: add go protobuf generation (#6)
* feat: add go protobuf generation * ci: check go protbuf generation * refactor: use 'namely/protoc-all:1.51_1' to compile the proto instead of locally binary * refactor: no need to add the 'bin/' igore * chore: modify code format * refactor: add some comments to describe our modification
This commit is contained in:
@@ -4,6 +4,7 @@ package greptime.v1;
|
||||
|
||||
option java_package="io.greptime.v1";
|
||||
option java_outer_classname = "Columns";
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||
|
||||
message Column {
|
||||
string column_name = 1;
|
||||
|
||||
@@ -4,6 +4,7 @@ package greptime.v1;
|
||||
|
||||
option java_package = "io.greptime.v1";
|
||||
option java_outer_classname = "Database";
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||
|
||||
import "greptime/v1/ddl.proto";
|
||||
import "greptime/v1/column.proto";
|
||||
|
||||
@@ -4,6 +4,7 @@ package greptime.v1;
|
||||
|
||||
option java_package = "io.greptime.v1";
|
||||
option java_outer_classname = "Ddl";
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||
|
||||
import "greptime/v1/column.proto";
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
import "greptime/v1/meta/store.proto";
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
message RequestHeader {
|
||||
uint64 protocol_version = 1;
|
||||
// cluster_id is the ID of the cluster which be sent to.
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
|
||||
service Heartbeat {
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
|
||||
service Lock {
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
|
||||
service Router {
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
|
||||
service Store {
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
syntax = "proto3";
|
||||
package prometheus;
|
||||
|
||||
option go_package = "prompb";
|
||||
// GreptimeTeam modify the original go_package definition to make it constistent with the go package name.
|
||||
// And we also remove the gogoproto dependency which is now deprecated.
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote";
|
||||
|
||||
import "prometheus/remote/types.proto";
|
||||
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
syntax = "proto3";
|
||||
package prometheus;
|
||||
|
||||
option go_package = "prompb";
|
||||
// GreptimeTeam modify the original go_package definition to make it constistent with the go package name.
|
||||
// And we also remove the gogoproto dependency which is now deprecated.
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/prometheus/remote";
|
||||
|
||||
message MetricMetadata {
|
||||
enum MetricType {
|
||||
|
||||
Reference in New Issue
Block a user