blob: e281b333593d5b6beab0cc981e022cf2aa4a57c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package objectpool
import (
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/internal/storage"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
cfg config.Cfg
locator storage.Locator
gitCmdFactory git.CommandFactory
}
// NewServer creates a new instance of a gRPC repo server
func NewServer(cfg config.Cfg, locator storage.Locator, gitCmdFactory git.CommandFactory) gitalypb.ObjectPoolServiceServer {
return &server{cfg: cfg, locator: locator, gitCmdFactory: gitCmdFactory}
}
|