mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Add Weave peers view
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user