Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perso-distributed-systems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xavier.perret
perso-distributed-systems
Commits
cfa22be3
Commit
cfa22be3
authored
2 years ago
by
Xavier Perret
Browse files
Options
Downloads
Patches
Plain Diff
added datastructures for cleaner code
parent
46c7531b
Branches
Branches containing commit
No related tags found
1 merge request
!2
added file to separate client function from the server
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/types/datastructures.go
+14
-0
14 additions, 0 deletions
app/types/datastructures.go
with
14 additions
and
0 deletions
app/types/datastructures.go
+
14
−
0
View file @
cfa22be3
...
@@ -39,3 +39,17 @@ type Blob struct {
...
@@ -39,3 +39,17 @@ type Blob struct {
ContainerClient
azblob
.
ContainerClient
ContainerClient
azblob
.
ContainerClient
BlockBlobClient
azblob
.
BlockBlobClient
BlockBlobClient
azblob
.
BlockBlobClient
}
}
// Config - is the configuration of a node, it's id, address, port and neighbours
type
Config
struct
{
ID
int
`yaml:"id"`
Address
string
`yaml:"address"`
Port
int
`yaml:"port"`
Neighbours
[]
Neighbors
`yaml:"neighbors"`
}
type
Neighbors
struct
{
ID
int
`yaml:"id"`
Address
string
`yaml:"address"`
Port
int
`yaml:"port"`
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment