{"action":"opened","issue":{"url":"https://api.github.com/repos/danalex97/Speer/issues/43","repository_url":"https://api.github.com/repos/danalex97/Speer","labels_url":"https://api.github.com/repos/danalex97/Speer/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/danalex97/Speer/issues/43/comments","events_url":"https://api.github.com/repos/danalex97/Speer/issues/43/events","html_url":"https://github.com/danalex97/Speer/issues/43","id":381923260,"node_id":"MDU6SXNzdWUzODE5MjMyNjA=","number":43,"title":"Configuration file","user":{"login":"danalex97","id":6241897,"node_id":"MDQ6VXNlcjYyNDE4OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6241897?v=4","gravatar_id":"","url":"https://api.github.com/users/danalex97","html_url":"https://github.com/danalex97","followers_url":"https://api.github.com/users/danalex97/followers","following_url":"https://api.github.com/users/danalex97/following{/other_user}","gists_url":"https://api.github.com/users/danalex97/gists{/gist_id}","starred_url":"https://api.github.com/users/danalex97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danalex97/subscriptions","organizations_url":"https://api.github.com/users/danalex97/orgs","repos_url":"https://api.github.com/users/danalex97/repos","events_url":"https://api.github.com/users/danalex97/events{/privacy}","received_events_url":"https://api.github.com/users/danalex97/received_events","type":"User","site_admin":false},"labels":[{"id":810455900,"node_id":"MDU6TGFiZWw4MTA0NTU5MDA=","url":"https://api.github.com/repos/danalex97/Speer/labels/enhancement","name":"enhancement","color":"0e8a16","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-18T03:02:56Z","updated_at":"2018-11-18T03:02:56Z","closed_at":null,"author_association":"OWNER","body":"**This issue** is about creating a configuration file for the `main.go` script. The configuration file should have the following format:\r\n\r\n```javascript\r\n{\r\n  \"lang\" : \"go\",  // the language of the entry point\r\n  \"entry\" : \"./examples/simple_torrent.go\", // the file which will be used as the main class running in the simulation\r\n\r\n  \"nodes\" : 700, // number of peers in the system\r\n\r\n  // configuration of the router topology\r\n  \"transitDomains\"    : 10,\r\n  \"transitDomainSize\" : 50,\r\n  \"stubDomains\"       : 14,\r\n  \"stubDomainSize\"    : 100,\r\n\r\n  // interval of virtual time units at which the capacity scheduler runs\r\n  \"transferInterval\"  : 1500,\r\n\r\n  // list of nodes with their upload and download capacity\r\n  \"capacityNodes\" : [{\r\n    \"number\"   : 1,\r\n    \"upload\"   : 0,\r\n    \"download\" : 0\r\n  },{\r\n    \"number\"   : 1,\r\n    \"upload\"   : 10000,\r\n    \"download\" : 0\r\n  }, {\r\n    \"number\"   : 350,\r\n    \"upload\"   : 2000,\r\n    \"download\" : 6000\r\n  }, {\r\n    \"number\"   : 349,\r\n    \"upload\"   : 10000,\r\n    \"download\" : 10000\r\n  }],\r\n\r\n  // safety and progress property configurations\r\n  \"allNodesRunInterval\" : 500\r\n}\r\n```\r\n\r\nThe config file should:\r\n- [ ] have default values \r\n- [ ] support comments"}}
{"actor":{"display_login":"danalex97"}}