Skip to content
26 changes: 26 additions & 0 deletions api/proto/workspace/v1/workspace.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

package qrixr.workspace.v1;

option go_package = "github.com/Skoowshot/qrix-runtime/gen/go/workspace/v1;workspacev1";

service WorkspaceService {
rpc Create(CreateRequest) returns (CreateResponse);
rpc GetByName(GetByNameRequest) returns (GetByNameResponse);
}

message CreateRequest {
string name = 1;
}

message CreateResponse {
uint64 id = 1;
}

message GetByNameRequest {
string name = 1;
}

message GetByNameResponse {
uint64 id = 1;
}
13 changes: 13 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: v2
managed:
enabled: true
override:
- file_option: go_package_prefix
value: github.com/Skoowshot/qrix-runtime/gen
plugins:
- remote: buf.build/protocolbuffers/go
out: gen/go
opt: paths=source_relative
- remote: buf.build/grpc/go
out: gen/go
opt: paths=source_relative
10 changes: 10 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
version: v2
modules:
- path: api/proto
lint:
use:
- STANDARD
breaking:
use:
- FILE
271 changes: 271 additions & 0 deletions gen/go/workspace/v1/workspace.pb.go

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

Loading
Loading