Skip to content
Snippets Groups Projects
Commit cfa22be3 authored by Xavier Perret's avatar Xavier Perret
Browse files

added datastructures for cleaner code

parent 46c7531b
Branches
No related tags found
1 merge request!2added file to separate client function from the server
...@@ -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"`
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment