Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gitaly/service/rangediff/server.go')
-rw-r--r--internal/gitaly/service/rangediff/server.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/gitaly/service/rangediff/server.go b/internal/gitaly/service/rangediff/server.go
new file mode 100644
index 000000000..c444be16a
--- /dev/null
+++ b/internal/gitaly/service/rangediff/server.go
@@ -0,0 +1,21 @@
+package rangediff
+
+import (
+ "gitlab.com/gitlab-org/gitaly/v16/internal/git"
+ "gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/storage"
+ "gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypb"
+)
+
+type server struct {
+ gitalypb.UnimplementedRangeDiffServiceServer
+ locator storage.Locator
+ gitCmdFactory git.CommandFactory
+}
+
+// NewServer creates a new instance of a grpc RangeDiffServiceServer
+func NewServer(locator storage.Locator, gitCmdFactory git.CommandFactory) gitalypb.RangeDiffServiceServer {
+ return &server{
+ locator: locator,
+ gitCmdFactory: gitCmdFactory,
+ }
+}