blob: 0fd568863061ec196b89c7a1c64a3824e95ec6b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package server
import (
"gitlab.com/gitlab-org/gitaly/v14/internal/git"
"gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"
)
type server struct {
gitCmdFactory git.CommandFactory
storages []config.Storage
}
// NewServer creates a new instance of a grpc ServerServiceServer
func NewServer(gitCmdFactory git.CommandFactory, storages []config.Storage) gitalypb.ServerServiceServer {
return &server{gitCmdFactory: gitCmdFactory, storages: storages}
}
|