Skip to content

Commit

Permalink
Fix grpc libraries and client/server code
Browse files Browse the repository at this point in the history
  • Loading branch information
nmakhotkin committed Jun 29, 2024
1 parent 7c020d0 commit 58dd5ad
Show file tree
Hide file tree
Showing 7 changed files with 541 additions and 330 deletions.
6 changes: 5 additions & 1 deletion generate_protos.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

protoc protos/pluke.proto --go_out=plugins=grpc:pkg/grpc && mv pkg/grpc/protos/pluke.pb.go pkg/grpc/ && rm -rf pkg/grpc/protos
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

protoc --proto_path=protos --go_out=pkg/grpc --go_opt=paths=source_relative \
--go-grpc_out=pkg/grpc --go-grpc_opt=paths=source_relative pluke.proto
37 changes: 31 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,26 +1,51 @@
module github.com/kuberlab/pluk

go 1.16
go 1.19

require (
github.com/Masterminds/semver v1.5.0
github.com/emicklei/go-restful v2.16.0+incompatible
github.com/golang/protobuf v1.5.2
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.4.2
github.com/hanwen/go-fuse/v2 v2.1.0
github.com/jinzhu/gorm v1.9.16
github.com/json-iterator/go v1.1.12
github.com/kuberlab/lib v0.0.0-20210930085922-e345a1f59ba5
github.com/mattn/go-isatty v0.0.14
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-isatty v0.0.19
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pborman/uuid v1.2.1
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1
go.uber.org/automaxprocs v1.4.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
google.golang.org/grpc v1.41.0
golang.org/x/sync v0.7.0
google.golang.org/grpc v1.57.2
google.golang.org/protobuf v1.34.2
gopkg.in/cheggaaa/pb.v1 v1.0.28
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/fatih/color v1.15.0 // indirect
github.com/go-sql-driver/mysql v1.5.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/lib/pq v1.1.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.8.4 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240624140628-dc46fd24d27d // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
k8s.io/apimachinery v0.22.2 // indirect
)
62 changes: 36 additions & 26 deletions go.sum

Large diffs are not rendered by default.

Loading

0 comments on commit 58dd5ad

Please # to comment.