diff --git a/app/types/datastructures.go b/app/types/datastructures.go index 0348421e9f154a2d39a8d5fcb54ba6265ce3ad82..7837771057b1eeeae8132125771307bda9c883f1 100644 --- a/app/types/datastructures.go +++ b/app/types/datastructures.go @@ -39,3 +39,17 @@ type Blob struct { ContainerClient azblob.ContainerClient 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"` +}