Skip to content

Commit

Permalink
chore: Use newer gRPC library version
Browse files Browse the repository at this point in the history
Implement all necessary changes to adapt to use latest gRPC imlpementation and code generators.
  • Loading branch information
Victor Castell committed Nov 22, 2020
1 parent a403713 commit e56ce03
Show file tree
Hide file tree
Showing 11 changed files with 2,888 additions and 1,724 deletions.
1 change: 1 addition & 0 deletions dkron/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type DkronGRPCServer interface {

// GRPCServer is the local implementation of the gRPC server interface.
type GRPCServer struct {
proto.DkronServer
agent *Agent
}

Expand Down
1 change: 1 addition & 0 deletions dkron/grpc_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (s *statusAgentHelper) Update(b []byte, c bool) (int64, error) {

// GRPCAgentServer is the local implementation of the gRPC server interface.
type AgentServer struct {
types.AgentServer
agent *Agent
}

Expand Down
11 changes: 8 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ require (
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2
github.com/armon/go-metrics v0.3.4
github.com/aws/aws-sdk-go v1.34.17 // indirect
github.com/distribworks/dkron v1.2.5
github.com/fluent/fluent-logger-golang v1.5.0
github.com/gin-contrib/expvar v0.0.1
github.com/gin-contrib/multitemplate v0.0.0-20200226145339-3e397ee01bc6
Expand Down Expand Up @@ -33,6 +34,8 @@ require (
github.com/prometheus/client_golang v1.8.0
github.com/robfig/cron/v3 v3.0.1
github.com/ryanuber/columnize v2.1.2+incompatible
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect
github.com/sirupsen/logrus v1.7.0
github.com/soheilhy/cmux v0.1.4
github.com/spf13/cobra v1.1.1
Expand All @@ -42,8 +45,10 @@ require (
github.com/stretchr/testify v1.6.1
github.com/tidwall/buntdb v1.1.4
github.com/tinylib/msgp v1.1.2 // indirect
golang.org/x/net v0.0.0-20200625001655-4c5254603344
google.golang.org/grpc v1.29.1
golang.org/x/net v0.0.0-20200822124328-c89045814202
google.golang.org/api v0.35.0
google.golang.org/grpc v1.33.2
google.golang.org/protobuf v1.25.0
)

go 1.14
go 1.15
244 changes: 244 additions & 0 deletions go.sum

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions plugin/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (m *ExecutorClient) Execute(args *types.ExecuteRequest, cb StatusHelper) (*
// Here is the gRPC server that GRPCClient talks to.
type ExecutorServer struct {
// This is the real implementation
types.ExecutorServer
Impl Executor
broker *plugin.GRPCBroker
}
Expand Down Expand Up @@ -102,6 +103,7 @@ func (m *GRPCStatusHelperClient) Update(b []byte, c bool) (int64, error) {
// GRPCStatusHelperServer is the gRPC server that GRPCClient talks to.
type GRPCStatusHelperServer struct {
// This is the real implementation
types.StatusHelperServer
Impl StatusHelper
}

Expand Down
Loading

0 comments on commit e56ce03

Please sign in to comment.