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

common.go « praefect « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a63d309bd146c7b55e8551e55ecb25eb6dd0c02e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package praefect

import "google.golang.org/grpc"

// Repository provides all necessary information to address a repository hosted
// in a specific Gitaly replica
type Repository struct {
	RelativePath string // relative path of repository
	Storage      string // storage location, e.g. default
}

// Node is a wrapper around the grpc client connection for a backend Gitaly node
type Node struct {
	Storage string
	cc      *grpc.ClientConn
}

// logging keys to use with logrus WithField
const (
	logKeyProjectPath = "ProjectPath"
)