peers propagation working fine, started to implement serverCA

This commit is contained in:
arnaucode
2017-11-26 12:25:28 +01:00
parent d9f2bca34c
commit f56763d48e
30 changed files with 1123 additions and 26 deletions

25
serverCA/readConfig.go Executable file
View File

@@ -0,0 +1,25 @@
package main
import (
"encoding/json"
"io/ioutil"
)
//Config reads the config
type Config struct {
IP string `json:"ip"`
Port string `json:"port"`
ServerIP string `json:"serverip"`
ServerPort string `json:"serverport"`
ServerRESTPort string `json:"serverrestport"`
WebServerPort string `json:"webserverport"`
}
var config Config
func readConfig(path string) {
file, err := ioutil.ReadFile(path)
check(err)
content := string(file)
json.Unmarshal([]byte(content), &config)
}