Add Weave peers view

This commit is contained in:
Alfonso Acosta
2016-10-24 15:33:30 +00:00
parent 405a705943
commit 8e4dfd7987
8 changed files with 73 additions and 10 deletions

View File

@@ -34,8 +34,15 @@ type Status struct {
type Router struct {
Name string
Peers []struct {
Name string
NickName string
Name string
NickName string
Connections []struct {
Name string
NickName string
Address string
Outbound bool
Established bool
}
}
}

View File

@@ -67,6 +67,14 @@ func TestStatus(t *testing.T) {
Peers: []struct {
Name string
NickName string
// TODO, extend
Connections []struct {
Name string
NickName string
Address string
Outbound bool
Established bool
}
}{
{
Name: mockWeavePeerName,