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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/praefect/models/node.go')
-rw-r--r--internal/praefect/models/node.go22
1 files changed, 7 insertions, 15 deletions
diff --git a/internal/praefect/models/node.go b/internal/praefect/models/node.go
index 64b72337b..851a28a4e 100644
--- a/internal/praefect/models/node.go
+++ b/internal/praefect/models/node.go
@@ -1,21 +1,13 @@
package models
-type Storage struct {
- Name string
-}
-
-type Node struct {
- Address string
-}
-
type StorageNode struct {
- ID int
- Name string
- Address string
+ ID int
+ StorageName string
+ Address string
}
-type Repository struct {
+type Shard struct {
RelativePath string
- Primary *StorageNode
- Secondaries []*StorageNode
-} \ No newline at end of file
+ Primary StorageNode
+ Secondaries []StorageNode
+}