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

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

// Node describes an address that serves a storage
type Node struct {
	ID      int
	Storage string `toml:"storage"`
	Address string `toml:"address"`
	Token   string `toml:"token"`
	Healthy bool
}

// Repository describes a repository's relative path and its primary and list of secondaries
type Repository struct {
	ID           int
	RelativePath string
	Primary      Node
	Replicas     []Node
}