Skip to content

Commit

Permalink
package naming housekeeping (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 23, 2024
1 parent 896125d commit 23796be
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 370 deletions.
2 changes: 1 addition & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package agent

import (
agentGrpc "github.com/openziti/zrok/agent/grpc"
"github.com/openziti/zrok/agent/agentGrpc"
"github.com/openziti/zrok/environment/env_core"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
Expand Down
71 changes: 36 additions & 35 deletions agent/grpc/agent.pb.go → agent/agentGrpc/agent.pb.go

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

2 changes: 1 addition & 1 deletion agent/grpc/agent.proto → agent/agentGrpc/agent.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
option go_package = "github.com/openziti/zrok/agent/grpc";
option go_package = "github.com/openziti/zrok/agent/agentGrpc";

service Agent {
rpc Version(VersionRequest) returns (VersionReply) {}
Expand Down

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

9 changes: 4 additions & 5 deletions agent/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ package agent

import (
"context"
"github.com/openziti/zrok/agent/grpc"
"github.com/openziti/zrok/agent/agentGrpc"
"github.com/openziti/zrok/build"
_ "google.golang.org/grpc"
)

type agentGrpcImpl struct {
grpc.UnimplementedAgentServer
agentGrpc.UnimplementedAgentServer
}

func (s *agentGrpcImpl) Version(ctx context.Context, req *grpc.VersionRequest) (*grpc.VersionReply, error) {
func (s *agentGrpcImpl) Version(ctx context.Context, req *agentGrpc.VersionRequest) (*agentGrpc.VersionReply, error) {
v := build.String()
return &grpc.VersionReply{V: &v}, nil
return &agentGrpc.VersionReply{V: &v}, nil
}
Loading

0 comments on commit 23796be

Please sign in to comment.