zrok/agent/grpc.go
2024-08-23 12:05:05 -04:00

17 lines
371 B
Go

package agent
import (
"context"
"github.com/openziti/zrok/agent/grpc"
"github.com/prometheus/common/version"
_ "google.golang.org/grpc"
)
type agentGrpcImpl struct {
grpc.UnimplementedAgentServer
}
func (s *agentGrpcImpl) Version(ctx context.Context, req *grpc.VersionRequest) (*grpc.VersionReply, error) {
return &grpc.VersionReply{V: &version.Version}, nil
}