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: db3224c4c995fd4ada9461942518120dc5bf8878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package models

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

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