blob: 6662457e07874f7f1592c11a9b5742b832e10e8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package server
import (
"gitlab.com/gitlab-org/gitaly/v16/internal/praefect/config"
"gitlab.com/gitlab-org/gitaly/v16/internal/praefect/service"
"gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypb"
)
// Server is a ServerService server
type Server struct {
gitalypb.UnimplementedServerServiceServer
conf config.Config
conns service.Connections
checks []service.CheckFunc
}
// NewServer creates a new instance of a grpc ServerServiceServer
func NewServer(conf config.Config, conns service.Connections, checks []service.CheckFunc) gitalypb.ServerServiceServer {
s := &Server{
conf: conf,
conns: conns,
checks: checks,
}
return s
}
|